class_docstr: A class to create libraries that can be used to register new operators or
  override operators in existing libraries from Python.
  A user can optionally pass in a dispatch keyname if they only want to register
  kernels corresponding to only one specific dispatch key.
  
  To create a library to override operators in an existing library (with name ns), set the kind to "IMPL".
  To create a new library (with name ns) to register new operators, set the kind to "DEF".
  To create a fragment of a possibly existing library to register operators (and bypass
  the limitation that there is only one library for a given namespace), set the kind to
  "FRAGMENT".
  
  Args:
      ns: library name
      kind: "DEF", "IMPL" (default: "IMPL"), "FRAGMENT"
      dispatch_key: PyTorch dispatch key (default: "")
code: def _destroy(self):
      self.m = None
      for handle in self._registration_handles:
          handle.destroy()
      self._registration_handles.clear()
  
imports: from ._ops import OpOverload
  from typing import Any, Optional, Set, List
  import traceback
  import torch
  import weakref
  import functools
  import inspect
  import re
  import sys
label_desc: Use image node_id 5 for calling the Library obj's underlying member method code with example usage: obj._destroy() without return types