code: def _format_yaml(self, payload):
          
          return parser.ordered_dump(payload, Dumper=yaml.SafeDumper,
                                     default_flow_style=False)
docs: Convert the payload into a YAML string with proper
          indentation and return it.