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 take a filename as input and create a new CSV file with the specified information. If the input CSV file is empty, it should return a message indicating that the file is empty.
  assert parse_csv('example.csv')=='new_csv.csv'
  assert parse_csv('empty.csv')=='The CSV file is empty'
  assert parse_csv('test.csv')=='new_csv.csv'
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return 'The CSV file is empty'
              
              rows = len(lines)
              columns = len(lines[0].split(','))
              data_sums = [0] * columns
              
              for line in lines:
                  values = list(map(float, line.strip().split(',')))
                  for i in range(columns):
                      data_sums[i] += values[i]
              
              new_filename = 'new_csv.csv'
              with open(new_filename, 'w') as new_file:
                  new_file.write(f'Total Rows,{rows}\n')
                  new_file.write(f'Total Columns,{columns}\n')
                  for i in range(columns):
                      new_file.write(f'Attribute {i+1} Total,{data_sums[i]}\n')
              
              return new_filename
      except FileNotFoundError:
          return 'The CSV file is empty'