def merge_two_dicts(data_1, data_2):

    """Function:  merge_two_dicts

    Description:  Merges two dictionaries.

    Note:  Any duplicate keys between the two dictionaries will be overwritten
        by data_2 keys.

    Arguments:
        (input) data_1 -> Dictionary.
        (input) data_2 -> Dictionary.
        (output) data -> Merged dictionary.
        (output) status -> True|False - Status of the merge.
        (output) err_msg -> Error message if merge fails.

    """

    status = True
    err_msg = ""
    data = None

    if isinstance(data_1, dict) and type(data_1) == type(data_2):
        data_1 = dict(data_1)
        data_2 = dict(data_2)
        data = data_1.copy()
        data.update(data_2)

    else:
        status = False
        err_msg = "One item isn't a dictionary or inconsistent data types"

    return data, status, err_msg