from typing import Dict
from typing import Any


def _lookup(key: str, *dicts: Dict[str, Any]) -> Any:
  """Look up a key in multiple dictionaries in order."""
  for dict1 in dicts:
    if key in dict1:
      return dict1.get(key)
  return None