code: def add_path_resolver(
      tag, path, kind=None, Loader=None, Dumper=Dumper
  ):
      """
      Add a path based resolver for the given tag.
      A path is a list of keys that forms a path
      to a node in the representation tree.
      Keys can be string values, integers, or None.
      """
      if Loader is None:
          loader.Loader.add_path_resolver(tag, path, kind)
          loader.FullLoader.add_path_resolver(tag, path, kind)
          loader.UnsafeLoader.add_path_resolver(tag, path, kind)
      else:
          Loader.add_path_resolver(tag, path, kind)
      Dumper.add_path_resolver(tag, path, kind)
  
imports: from error import *
  from tokens import *
  from events import *
  from nodes import *
  from loader import *
  from dumper import *
label_desc: Use image node_id 23 for calling a global function with example usage: add_path_resolver(tag, path, kind, Loader, Dumper) without return types