class_docstr: Represents a registry of model architectures.
class_docstr_tok: ["Represents","a","registry","of","model","architectures","."]
docstr: Register the specified architecture with the decorated model
  configuration factory.
  
  :param arch_name:
      The name of the architecture.
docstr_tok: ["Register","the","specified","architecture","with","the","decorated","model","configuration","factory",".",":","param","arch_name",":","The","name","of","the","architecture","."]
code: def decorator(
      self, arch_name: str
  ) -> Callable[
      [ModelConfigFactory[ModelConfigT]],
      ModelConfigFactory[ModelConfigT],
  ]:
      """Register the specified architecture with the decorated model
      configuration factory.
  
      :param arch_name:
          The name of the architecture.
      """
  
      def register(
          config_factory: ModelConfigFactory[ModelConfigT],
      ) -> ModelConfigFactory[ModelConfigT]:
          self.register(arch_name, config_factory)
  
          return config_factory
  
      return register
  
file_path: fairseq2/src/fairseq2/models/utils/arch_registry.py
imports: from typing import AbstractSet, Callable, Dict, Generic, Protocol, TypeVar
label_desc: Use image node_id 5 for calling the ArchitectureRegistry obj's underlying member method code with example usage: obj.decorator(arch_name) and returns: register, config_factory