input: 
  from typing import List, Tuple
  
  def parse_csv(filename: str) -> Tuple[int, int, List[float]]:
      """ 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')
      (6, 3, [15.0, 7.5, 22.5])
      >>> parse_csv('empty.csv')
      (0, 0, [])
      """
      import csv
      
      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 len(data_totals) <= i:
                      data_totals.append(float(row[col]))
                  else:
                      data_totals[i] += float(row[col])
  
          # Write to new CSV
          with open('new_csv.csv', mode='w') as new_csv_file:
              writer = csv.writer(new_csv_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
              writer.writerow(['Rows', 'Columns', 'Data Totals'])
              writer.writerow([rows, cols, data_totals])
  
      return rows, cols, data_totals
  
  if __name__ == '__main__':
      filename = 'test.csv'
      parse_csv(filename)
  
output:     
      import csv
      
      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 len(data_totals) <= i:
                      data_totals.append(float(row[col]))
                  else:
                      data_totals[i] += float(row[col])
  
          # Write to new CSV
          with open('new_csv.csv', mode='w') as new_csv_file:
              writer = csv.writer(new_csv_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
              writer.writerow(['Rows', 'Columns', 'Data Totals'])
              writer.writerow([rows, cols, data_totals])
  
      return rows, cols, data_totals
  