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')
      """
  
output:     
      with open(filename, '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
          
          totals = [0] * num_cols
          for row in rows:
              for i, value in enumerate(row):
                  totals[i] += float(value) if value.replace('.', '', 1).isdigit() else 0
          
          with open('output.csv', 'w', newline='') as outfile:
              writer = csv.writer(outfile)
              writer.writerow(['Total Rows', 'Total Columns'] + [f'Total {i+1}' for i in range(num_cols)])
              writer.writerow([num_rows, num_cols] + totals)
  