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 be named `parse_csv` and take a single parameter `filename` which is the name of the CSV file to parse. The generated CSV should be named 'new_csv.csv'.
  
  assert parse_csv('test1.csv')==None
  assert parse_csv('test2.csv')==None
  assert parse_csv('empty.csv')==None
  assert parse_csv('large_dataset.csv')==None
  assert parse_csv('example.csv')==None
output: import csv
  
  def parse_csv(filename):
      with open(filename, 'r') as file:
          reader = csv.reader(file)
          rows = list(reader)
          
          if not rows:
              with open('new_csv.csv', 'w', newline='') as new_file:
                  writer = csv.writer(new_file)
                  writer.writerow(['Total Rows', 'Total Columns', 'Total Data'])
                  writer.writerow([0, 0, 0])
              return
          
          total_rows = len(rows)
          total_columns = len(rows[0])
          total_data = sum(len(row) for row in rows)
          
          with open('new_csv.csv', 'w', newline='') as new_file:
              writer = csv.writer(new_file)
              writer.writerow(['Total Rows', 'Total Columns', 'Total Data'])
              writer.writerow([total_rows, total_columns, total_data])