code: def subconfigs(cls, config_cls: Type) -> Tuple[Type, ...]:
      return tuple(
          sub_cls
          for sub_cls in cls.configs(config_cls.__COMPONENT_TYPE__)
          if issubclass(sub_cls.__COMPONENT__, config_cls.__COMPONENT__)
      )
  
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 5 for calling the Registry obj's underlying member method code with example usage: obj.subconfigs(cls, config_cls) and returns: tuple