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 total amount of the data for each attribute. If the input CSV is empty, the function should return an empty list.
  assert parse_csv('test1.csv')==[[2, 3, [10.0, 15.0, 20.0]]]
  assert parse_csv('test2.csv')==[[3, 4, [22.5, 30.0, 37.5, 45.0]]]
  assert parse_csv('test3.csv')==[[0, 0, []]]
  assert parse_csv('test4.csv')==[[1, 2, [5.0, 7.5]]]
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return [[0, 0, []]]
              rows = len(lines)
              columns = len(lines[0].strip().split(','))
              totals = [0.0] * columns
              for line in lines:
                  values = list(map(float, line.strip().split(',')))
                  for i in range(columns):
                      totals[i] += values[i]
              return [[rows, columns, totals]]
      except FileNotFoundError:
          return [[0, 0, []]]