code: def make_native_dict_keys(d):
      
      res = {}
      for k, v in d.items():  #
          k = compat.to_native(k)
          if type(v) is dict:
              v = make_native_dict_keys(v)
          res[k] = v
      return res
docs: Convert all keys to native `str` type (recursively).