code: def test_config_union_invalid(self):
      unions = [
          ([MAMConfig(), SeqBnConfig()], TypeError),
          ([SeqBnConfig(), SeqBnConfig()], ValueError),
          ([SeqBnConfig(), DoubleSeqBnConfig()], ValueError),
      ]
      for union, error_type in unions:
          with self.subTest(union=union):
              self.assertRaises(error_type, ConfigUnion, *union)
  
file_path: adapters/tests/test_adapter_config.py
imports: import json
  import unittest
  from dataclasses import FrozenInstanceError, dataclass
  from adapters import ADAPTER_CONFIG_MAP, AdapterConfig, ConfigUnion, DoubleSeqBnConfig, LoRAConfig, MAMConfig, ParBnConfig, PrefixTuningConfig, SeqBnConfig
  from transformers.testing_utils import require_torch
label_desc: Use image node_id 6 for calling the AdapterConfigTest obj's underlying member method code with example usage: obj.test_config_union_invalid() without return types