class_docstr: The metaclass for YAMLObject.
code: def __init__(cls, name, bases, kwds):
      super(YAMLObjectMetaclass, cls).__init__(name, bases, kwds)
      if "yaml_tag" in kwds and kwds["yaml_tag"] is not None:
          if isinstance(cls.yaml_loader, list):
              for loader in cls.yaml_loader:
                  loader.add_constructor(cls.yaml_tag, cls.from_yaml)
          else:
              cls.yaml_loader.add_constructor(
                  cls.yaml_tag, cls.from_yaml
              )
  
          cls.yaml_dumper.add_representer(cls, cls.to_yaml)
  
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 1 to create a new YAMLObjectMetaclass object from inherited base classes: type with example: obj = YAMLObjectMetaclass(cls, name, bases, kwds)