from typing import Mapping
from typing import Any
from typing import List


def _contains_keys(data: Mapping[str, Any], keys: List[str]) -> bool:
  """Returns whether a possibly mult-level mapping contains a key path."""
  value = data
  for key in keys:
    if key in value:
      value = value[key]
    else:
      return False
  return True