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: Checks whether all adapters in a list share the same config setting for a given attribute and returns the
  shared value.
  
  Args:
      adapter_names (list): The adapters to check.
      attribute (str): The config attribute to check.
docstr_tok: ["Checks","whether","all","adapters","in","a","list","share","the","same","config","setting","for","a","given","attribute","and","returns","the","shared","value",".","Args",":","adapter_names","(","list",")",":","The","adapters","to","check",".","attribute","(","str",")",":","The","config","attribute","to","check","."]
code: def common_config_value(self, adapter_names: list, attribute: str):
      """
      Checks whether all adapters in a list share the same config setting for a given attribute and returns the
      shared value.
  
      Args:
          adapter_names (list): The adapters to check.
          attribute (str): The config attribute to check.
      """
      common_value = None
      for i, name in enumerate(adapter_names):
          config = self.get(name)
          if not config:
              raise ValueError(
                  f"No adapter with name '{name}' found. Make sure that an adapter with this name is loaded."
              )
          config_value = config.get(attribute, None)
          if i > 0 and config_value != common_value:
              raise ValueError(
                  f"All given adapters must define the same value for config attribute {attribute}."
              )
          common_value = config_value
      return common_value
  
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 10 for calling the ModelAdaptersConfig obj's underlying member method code with example usage: obj.common_config_value(adapter_names, attribute) and returns: common_value