code: def __init__(
      self, key: str, checkers: Dict[str, Dict[Key, "Validator"]]
  ):
      super().__init__(dict)
      self.key = key
      self.valid_key = oneof(*checkers.keys())
      self.checkers = {
          k: keyed({required(key): self.valid_key, **fields})
          for k, fields in checkers.items()
      }
  
imports: from typing import Union, Dict, Pattern, Callable, Any, List, Optional
  import re
  import logging
label_desc: Use image node_id 1 to create a new SwitchValidator object from inherited base classes: TypedValidator with example: obj = SwitchValidator(key, checkers)