input: Write a function named parse_csv that takes a filename of a CSV file as input and generates a new CSV file named 'new_csv.csv' which includes the total number of rows, total number of columns, and the total amount of data for each attribute from the original CSV. If the CSV file is empty, it should still create the new CSV with these totals initialized to zero.
  
  assert parse_csv('empty.csv')==None
  assert parse_csv('single_row.csv')==None
  assert parse_csv('normal.csv')==None
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  with open('new_csv.csv', 'w') as new_file:
                      new_file.write("Total Rows,Total Columns,Total Amount of Data\n")
                      new_file.write("0,0,0\n")
                  return
              
              rows = len(lines)
              columns = len(lines[0].strip().split(','))
              data_sum = [0] * columns
              
              for line in lines:
                  values = list(map(float, line.strip().split(',')))
                  for i in range(columns):
                      data_sum[i] += values[i]
              
              with open('new_csv.csv', 'w') as new_file:
                  new_file.write("Total Rows,Total Columns,Total Amount of Data\n")
                  new_file.write(f"{rows},{columns},")
                  new_file.write(",".join(map(str, data_sum)) + "\n")
      except FileNotFoundError:
          pass