def merge_dicts(*dict_args):
    """Merges arbitrary number of dicts.

    Gives precedence to latter dicts.

    Args:
        *dict_arg: arbitrary number of dicts

    Returns:
        a single merged dict
    """

    result = {}
    for dictionary in dict_args:
        result.update(dictionary)
    return result