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. If the input CSV is empty, the output CSV should contain zeros for the total number of rows, columns, and data totals.
  
  assert parse_csv('test.csv')==None
  assert parse_csv('empty.csv')==None
  assert parse_csv('multiple_rows.csv')==None
  assert parse_csv('multiple_cols.csv')==None
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return "0,0,0\n"
              rows = len(lines)
              cols = len(lines[0].strip().split(','))
              data_totals = [0] * cols
              for line in lines:
                  values = list(map(int, line.strip().split(',')))
                  for i in range(cols):
                      data_totals[i] += values[i]
              result = f"{rows},{cols},{','.join(map(str, data_totals))}\n"
              return result
      except FileNotFoundError:
          return None