code: def __init__(self):
      C._dispatch_check_invariants(self.name)  # type: ignore[attr-defined]
      self.ref = C._dispatch_library("FRAGMENT", self.namespace, "")
      self.ref.def_("foo(Tensor x) -> Tensor")
  
file_path: pytorch/torch/_python_dispatcher.py
imports: import re
  import torch._C
label_desc: Use image node_id 1 to create a new PythonDispatcher object  with example: obj = PythonDispatcher()