<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _eq_dicts(d1, d2):
 """Returns True if d1 == d2, False otherwise"""

        if not d1.keys() == d2.keys():
            return False

        for k, v1 in d1.items():
            v2 = d2[k]
            if not type(v1) == type(v2):
                return False
            if isinstance(v1, np.ndarray):
                if not np.array_equal(v1, v2):
                    return False
            else:
                if not v1 == v2:
                    return False
        return True