class_docstr: An object that can dump itself to a YAML stream
  and load itself from a YAML stream.
docstr: Convert a Python object to a representation node.
docstr_tok: ["Convert","a","Python","object","to","a","representation","node","."]
code: def to_yaml(cls, dumper, data):
      """
      Convert a Python object to a representation node.
      """
      return dumper.represent_yaml_object(
          cls.yaml_tag, data, cls, flow_style=cls.yaml_flow_style
      )
  
imports: from .error import *
  from .tokens import *
  from .events import *
  from .nodes import *
  from .loader import *
  from .dumper import *
  import io
label_desc: Use image node_id 2 for calling the YAMLObject obj's underlying member method code with example usage: obj.to_yaml(cls, dumper, data) and returns: dumper