def DeleteKeys(d, keys):
  """Delete the keys from the given dictionary, if present.

  Args:
    d: The dictionary to remove the keys from.
    keys: The list of keys to remove.

  Returns:
    The dictionary.
  """
  for key in keys:
    if key in d:
      del d[key]
  return d