input: Write a function that parses a CSV file and generates a new CSV file that includes the total number of rows, total number of columns, and the total sum of each attribute's values from the original CSV file. The function should take the filename of the input CSV as an argument and create a new CSV file named 'new_csv.csv'.
  
  def parse_csv(filename):
      with open(filename) as csv_file:
          reader = csv.DictReader(csv_file)
          rows = 0
          cols = 0
          data_totals = {}
          for row in reader:
              rows += 1
              cols = len(row)
              for col in row:
                  if col not in data_totals:
                      data_totals[col] = 0
                  data_totals[col] += float(row[col])
          # Write to new csv
          with open('new_csv.csv', mode='w') as new_csv_file:
              writer = csv.writer(new_csv_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
              writer.writerow(['Rows', 'Columns'] + list(data_totals.keys()))
              writer.writerow([rows, cols] + list(data_totals.values()))
  
  assert parse_csv('test.csv')==None
  assert parse_csv('another_test.csv')==None
output: def parse_csv(filename):
      with open(filename) as csv_file:
          reader = csv.DictReader(csv_file)
          rows = 0
          cols = 0
          data_totals = {}
          for row in reader:
              rows += 1
              cols = len(row)
              for col in row:
                  if col not in data_totals:
                      data_totals[col] = 0
                  data_totals[col] += float(row[col])
          # Write to new csv
          with open('new_csv.csv', mode='w') as new_csv_file:
              writer = csv.writer(new_csv_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
              writer.writerow(['Rows', 'Columns'] + list(data_totals.keys()))
              writer.writerow([rows, cols] + list(data_totals.values()))