class_docstr: This class manages the setup and configuration of adapter modules in a pre-trained model.
class_docstr_tok: ["This","class","manages","the","setup","and","configuration","of","adapter","modules","in","a","pre-trained","model","."]
docstr: Gets the config dictionary for a given adapter.
  
  Args:
      adapter_name (str): The name of the adapter.
  
  Returns:
      Mapping: The adapter configuration.
docstr_tok: ["Gets","the","config","dictionary","for","a","given","adapter",".","Args",":","adapter_name","(","str",")",":","The","name","of","the","adapter",".","Returns",":","Mapping",":","The","adapter","configuration","."]
code: def get(self, adapter_name: str) -> Optional[dict]:
      """
      Gets the config dictionary for a given adapter.
  
      Args:
          adapter_name (str): The name of the adapter.
  
      Returns:
          Mapping: The adapter configuration.
      """
      if adapter_name in self.adapters:
          config_name = self.adapters[adapter_name]
          if config_name in self.config_map:
              config = self.config_map.get(config_name, None)
          else:
              config = ADAPTER_CONFIG_MAP.get(config_name, None)
          if isinstance(config, str):
              config = ADAPTER_CONFIG_MAP[config]
      else:
          config = None
      return config
  
imports: import copy
  import logging
  from collections.abc import Collection, Mapping
  from typing import List, Optional, Union
  from ..None import __version__
  from ..composition import AdapterCompositionBlock
  from ..utils import get_adapter_config_hash
  from .adapter_config import ADAPTER_CONFIG_MAP, DEFAULT_ADAPTER_CONFIG, AdapterConfig, ConfigUnion
  from .adapter_fusion_config import ADAPTERFUSION_CONFIG_MAP, DEFAULT_ADAPTERFUSION_CONFIG
label_desc: Use image node_id 5 for calling the ModelAdaptersConfig obj's underlying member method code with example usage: obj.get(adapter_name) and returns: config