input: Write a function to parse a CSV file and generate a new CSV file that includes the total number of rows, total number of columns, and the total amount of data for each attribute. The function should return None.
  assert parse_csv('test.csv')==None
output: 
  def parse_csv(filename):
      import csv
      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 in range(num_cols):
                  totals[i] += int(row[i]) if row[i].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)
      return None
  