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 amount of data for each attribute. The function should return the new CSV file name.
  assert parse_csv('test1.csv')=='new_csv.csv'
  assert parse_csv('test2.csv')=='new_csv.csv'
  assert parse_csv('empty.csv')=='new_csv.csv'
output: def parse_csv(filename):
      import csv
      with open(filename, 'r') as file:
          reader = csv.reader(file)
          rows = list(reader)
          num_rows = len(rows)
          if num_rows == 0:
              num_cols = 0
          else:
              num_cols = len(rows[0])
          data_sums = [0] * num_cols
          for row in rows:
              for i in range(num_cols):
                  if row[i].strip():
                      data_sums[i] += 1
      with open('new_csv.csv', 'w', newline='') as new_file:
          writer = csv.writer(new_file)
          writer.writerow(['Total Rows', 'Total Columns'] + [f'Total Data for Attribute {i+1}' for i in range(num_cols)])
          writer.writerow([num_rows, num_cols] + data_sums)
      return 'new_csv.csv'