docstr: PretrainedConfigurations should not raise an Exception when serializing the config dict
  
  See, e.g., PretrainedConfig.to_json_string()
docstr_tok: ["PretrainedConfigurations","should","not","raise","an","Exception","when","serializing","the","config","dict","See",",","e.g.",",","PretrainedConfig.to_json_string","(",")"]
code: def test_model_config_serialization_fusion(self):
      """PretrainedConfigurations should not raise an Exception when serializing the config dict
  
      See, e.g., PretrainedConfig.to_json_string()
      """
      for k, v in ADAPTERFUSION_CONFIG_MAP.items():
          model = self.get_model()
          model.add_adapter("test1")
          model.add_adapter("test2")
          model.add_adapter_fusion(["test1", "test2"], config=v)
          # should not raise an exception
          model.config.to_json_string()
  
file_path: adapters/tests/test_adapter_fusion_common.py
imports: import copy
  import os
  import tempfile
  from dataclasses import asdict
  import torch
  from adapters import ADAPTER_MODEL_MAPPING, ADAPTERFUSION_CONFIG_MAP, AdapterConfig, AutoAdapterModel, SeqBnConfig
  from adapters.composition import Fuse
  from adapters.utils import ADAPTERFUSION_WEIGHTS_NAME
  from adapters.wrappers import load_model
  from transformers.testing_utils import require_torch, torch_device
label_desc: Use image node_id 6 for calling the AdapterFusionModelTestMixin obj's underlying member method code with example usage: obj.test_model_config_serialization_fusion() without return types