code: def ordered_dict_to_dict(d):
      
      ret = {}
      new_d = deepcopy(d)
      for k, v in new_d.items():
          if isinstance(v, OrderedDict):
              v = dict(v)
          if isinstance(v, dict):
              v = ordered_dict_to_dict(v)
          ret[k] = v
      return ret
docs: Converts inner OrderedDict to bare dict