<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compare_dicts(dict1, dict2):
 """ Checks if dict1 equals dict2 """

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