dicts_equal(d1, d2) that returns True if d1 and d2 contain exactly the same keys mapped to exactly the same values (order does not matter), and False otherwise. Do not use the == operator directly in your return statement — implement the comparison manually using keys and values.dicts_equal({'a': 1, 'b': 2}, {'b': 2, 'a': 1})True
Same key-value pairs, different insertion order.
dicts_equal({'a': 1}, {'a': 1, 'b': 2})False
Different key sets.
First compare `d1.keys() == d2.keys()`, then check every value matches.
Or compare set of items(): `set(d1.items()) == set(d2.items())` if values are hashable.