input: Write a python 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.
  assert parse_csv('test1.csv') == 'new_csv.csv'
  assert parse_csv('test2.csv') == 'new_csv.csv'
output: def parse_csv(input_file):
      import csv
  
      with open(input_file, mode='r', newline='') as infile:
          reader = csv.reader(infile)
          rows = list(reader)
          headers = rows[0]
          data = rows[1:]
          
          num_rows = len(data)
          num_columns = len(headers)
          
          totals = [0] * num_columns
          for row in data:
              for i, value in enumerate(row):
                  totals[i] += float(value) if value else 0
          
          totals_row = [''] * num_columns
          totals_row[0] = 'Total Rows'
          totals_row[1] = str(num_rows)
          
          totals_data_row = [''] * num_columns
          totals_data_row[0] = 'Total Data'
          totals_data_row[1:] = [str(total) for total in totals]
          
          new_rows = [headers] + data + [totals_row] + [totals_data_row]
  
      output_file = 'new_csv.csv'
      with open(output_file, mode='w', newline='') as outfile:
          writer = csv.writer(outfile)
          writer.writerows(new_rows)
      
      return output_file