class_docstr: Composes multiple adaptation method configurations into one. This class can be used to define complex adaptation
  method setups.
class_docstr_tok: ["Composes","multiple","adaptation","method","configurations","into","one",".","This","class","can","be","used","to","define","complex","adaptation","method","setups","."]
code: def __getitem__(self, key):
      if isinstance(key, int):
          return self.configs[key]
      elif hasattr(self, key):
          return getattr(self, key)
      else:
          i, k = key.split(".")
          return self.configs[int(i)][k]
  
imports: import logging
  from collections.abc import Mapping
  from dataclasses import FrozenInstanceError, asdict, dataclass, field, replace
  from typing import List, Optional, Union
  from ..utils import resolve_adapter_config
label_desc: Use image node_id 3 for calling the ConfigUnion obj's underlying member method code with example usage: obj.__getitem__(key) and returns: self, getattr, self