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):
                  try:
                      totals[i] += float(value)
                  except ValueError:
                      pass
  
      with open('output.csv', 'w', newline='') as output_file:
          writer = csv.writer(output_file)
          writer.writerow(['Total Rows', 'Total Columns'] + [f'Total {i+1}' for i in range(num_cols)])
          writer.writerow([num_rows, num_cols] + totals)
  