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","."]
code: def to_dict(self):
      output_dict = {}
      output_dict["adapters"] = copy.deepcopy(self.adapters)
      output_dict["config_map"] = {}
      for k, v in self.config_map.items():
          if isinstance(v, AdapterConfig):
              output_dict["config_map"][k] = v.to_dict()
          else:
              output_dict["config_map"][k] = copy.deepcopy(v)
      output_dict["fusions"] = copy.deepcopy(self.fusions)
      output_dict["fusion_config_map"] = {}
      for k, v in self.fusion_config_map.items():
          if isinstance(v, AdapterConfig):
              output_dict["fusion_config_map"][k] = v.to_dict()
          else:
              output_dict["fusion_config_map"][k] = copy.deepcopy(v)
      return output_dict
  
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 11 for calling the ModelAdaptersConfig obj's underlying member method code with example usage: obj.to_dict() and returns: output_dict