def _SafeMerge(*dictionaries: Dict[KeyT, ValT]) -> Dict[KeyT, ValT]:
  """Merges given dictionaries, checking if there are overlapping keys.

  Args:
    *dictionaries (Dict[KeyT, ValT]): The dictionaries to be merged.

  Returns:
    Dict[KeyT, ValT]: The resulting merged dictionary.

  Raises:
    ValueError: If keys are overlapping.
  """
  merged = {}  # type: Dict[KeyT, ValT]
  for d in dictionaries:
    if merged.keys() & d.keys():
      raise ValueError('Overlapping keys.')
    merged.update(d)
  return merged
Merges given dictionaries, checking if there are overlapping keys.

Args:
*dictionaries (Dict[KeyT, ValT]): The dictionaries to be merged.

Returns:
Dict[KeyT, ValT]: The resulting merged dictionary.

Raises:
ValueError: If keys are overlapping.
libcloudforensics/providers/kubernetes/enumerations/base.py