class_docstr: Represents a registry of model architectures.
class_docstr_tok: ["Represents","a","registry","of","model","architectures","."]
docstr: Return the model configuration of the specified architecture.
  
  :param arch_name:
      The name of the architecture.
docstr_tok: ["Return","the","model","configuration","of","the","specified","architecture",".",":","param","arch_name",":","The","name","of","the","architecture","."]
code: def get_config(self, arch_name: str) -> ModelConfigT:
      """Return the model configuration of the specified architecture.
  
      :param arch_name:
          The name of the architecture.
      """
      try:
          return self.configs[arch_name]()
      except KeyError:
          raise ValueError(
              f"The registry of '{self.model_type}' does not contain an architecture named '{arch_name}'."
          )
  
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 3 for calling the ArchitectureRegistry obj's underlying member method code with example usage: obj.get_config(arch_name) and returns: self