input: Write a function to parse a CSV file and generate a new CSV file that includes the total number of rows, total number of columns, and the total sum of data for each attribute. If the input CSV is empty, the function should generate an output CSV with "0" for all metrics.
  assert parse_csv('empty.csv')==True
  assert parse_csv('single_row.csv')==True
  assert parse_csv('multi_row.csv')==True
  assert parse_csv('missing_data.csv')==True
  assert parse_csv('test.csv')==True
output: def parse_csv(input_file):
      try:
          with open(input_file, 'r') as file:
              lines = file.readlines()
              if not lines:
                  with open('output.csv', 'w') as out_file:
                      out_file.write("0,0,0\n")
                  return True
              
              rows = len(lines)
              columns = len(lines[0].strip().split(','))
              sums = [0] * columns
              
              for line in lines:
                  data = line.strip().split(',')
                  for i in range(columns):
                      if data[i].strip():
                          sums[i] += float(data[i])
              
              with open('output.csv', 'w') as out_file:
                  out_file.write(f"{rows},{columns},{','.join(map(str, sums))}\n")
              return True
      except Exception as e:
          return False