code: def yaml_dump(dict_to_dump):
      
      yaml.SafeDumper.add_representer(OrderedDict, _dict_representer)
      return yaml.safe_dump(dict_to_dump, default_flow_style=False)
docs: Dump the dictionary as a YAML document.
  
      :param dict_to_dump: Data to be serialized as YAML
      :type dict_to_dump: dict
      :return: YAML document
      :rtype: str