code: def map_representer(dumper, value):
      
  
      value = ODict(value.items())
  
      if len(value.keys()) == 1:
          key = list(value.keys())[0]
  
          if key in CONVERTED_SUFFIXES:
              return fn_representer(dumper, key, value[key])
  
          if key.startswith(FN_PREFIX):
              return fn_representer(dumper, key[4:], value[key])
  
      return dumper.represent_mapping(TAG_MAP, value, flow_style=False)
docs: Deal with !Ref style function format and OrderedDict