code: def get_class(self, name: str) -> Type[T]:
      try:
          return self.registry[name]
      except KeyError:
          all_names = ", ".join(sorted(self.registry.keys()))
          raise NotImplementedError(
              f"Unknown name {name} (known names: {all_names})"
          )
  
file_path: PyTorch-BigGraph/torchbiggraph/plugin.py
imports: from typing import Callable, Dict, Generic, Type, TypeVar
  from urllib.parse import urlparse
label_desc: Use image node_id 4 for calling the PluginRegistry obj's underlying member method code with example usage: obj.get_class(name) and returns: self