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 data for each attribute.
  
  assert parse_csv('test.csv')==True
  assert parse_csv('invalid_file.csv')==False
  assert parse_csv('empty.csv')==True
output: def parse_csv(file_path):
      try:
          with open(file_path, 'r') as file:
              reader = csv.reader(file)
              rows = list(reader)
              if not rows:
                  return True
              num_rows = len(rows)
              num_cols = len(rows[0])
              total_data = [sum(int(row[i]) for row in rows if row[i].isdigit()) for i in range(num_cols)]
              with open('output.csv', 'w', newline='') as outfile:
                  writer = csv.writer(outfile)
                  writer.writerow(['Total Rows', 'Total Columns'] + [f'Total {i+1}' for i in range(num_cols)])
                  writer.writerow([num_rows, num_cols] + total_data)
              return True
      except Exception:
          return False