code: def add_representer(data_type, representer, Dumper=Dumper):
      """
      Add a representer for the given type.
      Representer is a function accepting a Dumper instance
      and an instance of the given data type
      and producing the corresponding representation node.
      """
      Dumper.add_representer(data_type, representer)
  
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 26 for calling a global function with example usage: add_representer(data_type, representer, Dumper) without return types