def convert_totals(report):
    """Converts the V4 report totals into the V3 report totals.

  Args:
    report: a Google Analytics V4 Report object.
  Returns:
    A list of rows of the V3 report object.
  """
    report_totals = report.get('data').get('totals')[0].get('values', [])
    metric_headers = report.get('columnHeader', {}).get('metricHeader').get(
        'metricHeaderEntries')
    totals = {}
    for metric_header, value in zip(metric_headers, report_totals):
        totals[metric_header.get('name')] = value
    return totals
