def update_dict_using_dict(dict1, dict2, operator):
    """
    Updates the elements of dict1 with the elements of dict2 using the given operator.
    Returns a 

    Args:
        dict1 (dict): Dictionary.
        dict2 (dict): Dictionary.
        operator (function): Can use the operator module to get basic operators.

    Returns:
        dict: Returns a new dictionary.
    """
    dict1 = dict1.copy()
    for k, v in dict2.items():
        if k in dict1:
            dict1[k] = operator(dict1[k], dict2[k])
        else:
            dict1[k] = dict2[k]
    return dict1