input: 
  from typing import List, Tuple
  
  
  def parse_csv(filename: str) -> Tuple[int, int, List[Tuple[float, int]]]:
      """ Parses a CSV and generates a new CSV that adds the total number of rows, total 
      number of columns, and total amount of data for each attribute.
      >>> parse_csv('test.csv')
      (4, 3, [[10.0, 2], [15.0, 2], [20.0, 2]])
      """
      with open(filename) as csv_file:
          reader = csv.DictReader(csv_file)
          rows =0
          cols = 0
          data_totals = []
          for row in reader:
              rows += 1
              cols = len(row)
              for i, col in enumerate(row):
                  if i < len(data_totals):
                      data_totals[i][0] += float(row[col])
                      data_totals[i][1] += 1
                  else:
                      data_totals.append([float(row[col]), 1])
          return rows, cols, data_totals
  
output:     
      import csv
  