input: 
  def parse_csv(filename: str) -> None:
      """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')
      # Generates a new CSV file named 'new_csv.csv' with the following content:
      # ['Rows', 'Columns', 'Data Totals']
      # [5, 3, [[15.0, 5], [10.0, 5], [25.0, 5]]]
      """
  
output:     import csv
  
      with open(filename, mode='r') as file:
          reader = csv.reader(file)
          rows = list(reader)
  
      num_rows = len(rows)
      num_cols = len(rows[0]) if num_rows > 0 else 0
  
      data_totals = []
      for col in range(num_cols):
          col_sum = sum(float(row[col]) for row in rows if row[col])
          data_totals.append([col_sum, num_rows])
  
      new_data = [['Rows', 'Columns', 'Data Totals'], [num_rows, num_cols, data_totals]]
  
      with open('new_csv.csv', mode='w', newline='') as new_file:
          writer = csv.writer(new_file)
          writer.writerows(new_data)