code: def add_constructor(tag, constructor, Loader=None):
      """
      Add a constructor for the given tag.
      Constructor is a function that accepts a Loader instance
      and a node object and produces the corresponding Python object.
      """
      if Loader is None:
          loader.Loader.add_constructor(tag, constructor)
          loader.FullLoader.add_constructor(tag, constructor)
          loader.UnsafeLoader.add_constructor(tag, constructor)
      else:
          Loader.add_constructor(tag, constructor)
  
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 24 for calling a global function with example usage: add_constructor(tag, constructor, Loader) without return types