input: from typing import List
  
  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 total number of rows, 
      columns, and data totals for each attribute.
      """
output:     with open(filename, 'r') as file:
          reader = csv.reader(file)
          rows = list(reader)
          num_rows = len(rows)
          num_cols = len(rows[0])
          data_totals = [0] * num_cols
          
          for row in rows:
              for i, value in enumerate(row):
                  data_totals[i] += float(value)
          
      with open('new_csv.csv', 'w', newline='') as new_file:
          writer = csv.writer(new_file)
          writer.writerow(['Total Rows', 'Total Columns'] + [f'Total {i+1}' for i in range(num_cols)])
          writer.writerow([num_rows, num_cols] + data_totals)