def ParseFunctionGroups(cwp_function_groups_lines):
  """Parses the contents of the function groups file.

  Args:
    cwp_function_groups_lines: A list of the lines contained in the CWP
      function groups file. A line contains the group name and the file path
      that describes the group, separated by a space.

  Returns:
    A list of tuples containing the group name and the file path.
  """
  # The order of the groups mentioned in the cwp_function_groups file
  # matters. A function declared in a file will belong to the first
  # mentioned group that matches its path to the one of the file.
  # It is possible to have multiple paths that belong to the same group.
  return [tuple(line.split()) for line in cwp_function_groups_lines]