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 amount of data for each attribute. If the file is empty, it should return an empty CSV with the headers.
  assert parse_csv('test.csv')==True
  assert parse_csv('empty.csv')==True
  assert parse_csv('sample.csv')==True
output: 
  def parse_csv(file_path):
      try:
          with open(file_path, 'r') as file:
              lines = file.readlines()
              if not lines:
                  return "Total Rows,Total Columns,Total Amount of Data\n"
              
              headers = lines[0].strip().split(',')
              total_rows = len(lines)
              total_columns = len(headers)
              total_data = [0] * total_columns
              
              for line in lines[1:]:
                  values = line.strip().split(',')
                  for i, value in enumerate(values):
                      if value.isdigit():
                          total_data[i] += int(value)
                      else:
                          total_data[i] += len(value)
              
              result = "Total Rows,Total Columns,Total Amount of Data\n"
              for i, header in enumerate(headers):
                  result += f"{total_rows},{total_columns},{total_data[i]}\n"
              
              return result
      except FileNotFoundError:
          return "Total Rows,Total Columns,Total Amount of Data\n"
  