input: from typing import List
  
  def parse_csv(filename: str) -> List[List[str]]:
      """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')
      [['Rows', 'Columns', 'Data Totals'], [5, 4, [['Attribute1_Sum', 5], ['Attribute2_Sum', 5], ['Attribute3_Sum', 5], ['Attribute4_Sum', 5]]]]
      """
output:     with open(filename, 'r') as file:
          reader = csv.reader(file)
          rows = list(reader)
          num_rows = len(rows)
          num_cols = len(rows[0]) if rows else 0
          data_totals = []
          
          for col in range(num_cols):
              col_sum = sum(float(row[col]) for row in rows if row[col].replace('.', '', 1).isdigit())
              data_totals.append([f'Attribute{col+1}_Sum', col_sum])
          
          return [['Rows', 'Columns', 'Data Totals'], [num_rows, num_cols, data_totals]]