def combine_dictionaries(
    dictionaries):
  """Utility for merging entries from all dictionaries in `dictionaries`.

  If there are multiple dictionaries with the same key, the entry from the
  latest dictionary is used for that key.

  Args:
    dictionaries: Iterable of dictionaries to combine entries of.

  Returns:
    A dictionary with the combined results.
  """
  result = {}
  for dictionary in dictionaries:
    result.update(dictionary)
  return result