code: def get(cls, component_type: ComponentType, config_cls: Type) -> Type:
      if component_type not in cls._registered_components:
          raise RegistryError(f"type {component_type} doesn't exist")
      if config_cls not in cls._registered_components[component_type]:
          raise RegistryError(
              f"unregistered config class {config_cls.__name__} for {component_type}"
          )
      return cls._registered_components[component_type][config_cls]
  
imports: import collections
  import enum
  from typing import Any, Dict, List, Tuple, Type, Union
  import torch
  from pytext.utils.usage import log_class_usage
  from .pytext_config import ConfigBase, PyTextConfig
label_desc: Use image node_id 2 for calling the Registry obj's underlying member method code with example usage: obj.get(cls, component_type, config_cls) and returns: cls