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 AdapterFusion.
  
  Args:
      fusion_name (Union[str, List[str]]): The name of the AdapterFusion or the adapters to fuse.
  
  Returns:
      Optional[dict]: The AdapterFusion configuration.
docstr_tok: ["Gets","the","config","dictionary","for","a","given","AdapterFusion",".","Args",":","fusion_name","(","Union","[","str",",","List","[","str","]","]",")",":","The","name","of","the","AdapterFusion","or","the","adapters","to","fuse",".","Returns",":","Optional","[","dict","]",":","The","AdapterFusion","configuration","."]
code: def get_fusion(
      self, fusion_name: Union[str, List[str]]
  ) -> Optional[dict]:
      """
      Gets the config dictionary for a given AdapterFusion.
  
      Args:
          fusion_name (Union[str, List[str]]): The name of the AdapterFusion or the adapters to fuse.
  
      Returns:
          Optional[dict]: The AdapterFusion configuration.
      """
      if isinstance(fusion_name, list):
          fusion_name = ",".join(fusion_name)
      if fusion_name in self.fusions:
          config_name = self.fusions[fusion_name]
          if config_name in self.fusion_config_map:
              config = self.fusion_config_map.get(config_name, None)
          else:
              config = ADAPTERFUSION_CONFIG_MAP.get(config_name, None)
      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 8 for calling the ModelAdaptersConfig obj's underlying member method code with example usage: obj.get_fusion(fusion_name) and returns: config