input: Write a function to parse a CSV and generate a new CSV that adds the total number of rows, total number of columns, and the total amount of data for each attribute. The function should take the filename of the input CSV as a parameter. If the input CSV is empty, the function should return an empty list.
  assert parse_csv('test.csv')==None
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return []
              rows = len(lines)
              columns = len(lines[0].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]
              result = [rows, columns] + data_sum
              return result
      except FileNotFoundError:
          return []