code: def __init__(self, keyed_checkers: Dict[Key, "Validator"]):
      super().__init__(dict)
      self.checkers = {}
      for k, v in keyed_checkers.items():
          if isinstance(k, RequiredKey):
              self.checkers[k.key] = (v, True)
          else:
              self.checkers[k] = (v, False)
  
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 KeyedValidator object from inherited base classes: TypedValidator with example: obj = KeyedValidator(keyed_checkers)