input: Write a function to parse a CSV and generate a new CSV that adds the total number of rows, total number of columns, and total amount of data for each attribute. Assume that the input CSV file is named 'test.csv' and the output CSV file is named 'new_csv.csv'. Return None. If the input CSV is empty, return None and do not create a new CSV.
  
  assert parse_csv('empty.csv') == None
  assert parse_csv('test.csv') == None
output: def parse_csv(input_file, output_file):
      import csv
      try:
          with open(input_file, mode='r') as file:
              reader = csv.reader(file)
              rows = list(reader)
              if not rows:
                  return None
              num_rows = len(rows)
              num_cols = len(rows[0])
              totals = [sum(int(row[i]) for row in rows if row[i].isdigit()) for i in range(num_cols)]
              with open(output_file, mode='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] + totals)
      except FileNotFoundError:
          return None