input: Write a function to parse a CSV file and generate a new CSV that includes the total number of rows, total number of columns, and the total sum of each column's data. The function should handle the parsing and summation of numerical data from each column and write the results to a new CSV file. If the CSV file is empty, the function should still generate a new CSV with the rows and columns counted as zero.
  assert parse_csv('test1.csv')==None
  assert parse_csv('test2.csv')==None
  assert parse_csv('empty.csv')==None
output: def parse_csv(filename):
      try:
          with open(filename, 'r') as file:
              lines = file.readlines()
              if not lines:
                  with open('output.csv', 'w') as outfile:
                      outfile.write('Total Rows,Total Columns,Sum Column 1,Sum Column 2,Sum Column 3\n')
                      outfile.write('0,0,0,0,0\n')
                  return
              
              headers = lines[0].strip().split(',')
              num_columns = len(headers)
              sums = [0] * num_columns
              
              for line in lines[1:]:
                  values = line.strip().split(',')
                  for i in range(num_columns):
                      if values[i].replace('.', '', 1).isdigit():
                          sums[i] += float(values[i])
              
              with open('output.csv', 'w') as outfile:
                  outfile.write(f'Total Rows,{len(lines)},Total Columns,{num_columns}')
                  for s in sums:
                      outfile.write(f',{s}')
                  outfile.write('\n')
      except FileNotFoundError:
          pass