def METHOD_NAME(self, dict1, dict2):
    dict1_keys = list(dict1.keys())
    dict2_keys = list(dict2.keys())
    self.assertEqual(len(dict1_keys), len(dict2_keys))
    for key in dict1_keys:
        dict1_val = dict1[key]
        dict2_val = dict2[key]
        # Cast ints to floats for more practical type comparison further down
        if isinstance(dict1_val, int):
            dict1_val = float(dict1_val)
        if isinstance(dict2_val, int):
            dict2_val = float(dict2_val)
        self.assertEqual(type(dict1_val), type(dict2_val))
        if isinstance(dict1_val, dict):
            self.METHOD_NAME(dict1_val, dict2_val)