code: def convert_dict2tuple(value):
      
      if isinstance(value, dict):
          for _keys in value:
              value[_keys] = convert_dict2tuple(value[_keys])
          return tuple(sorted(value.items()))
      else:
          return value
docs: convert dict type to tuple to solve unhashable problem.