Checks if dict1 equals dict2

def compare_dicts(dict1, dict2):
    """
    Checks if dict1 equals dict2
    """
    for k, v in dict2.items():
        if v != dict1[k]:
            return False
    return True