class_docstr: The tests below essentially check for the output format returned by HF.
  We need to ensure that it is in the format that we expect.
class_docstr_tok: ["The","tests","below","essentially","check","for","the","output","format","returned","by","HF",".","We","need","to","ensure","that","it","is","in","the","format","that","we","expect","."]
code: def test_toxicity_classification(self):
      function_name = "HFToxicityClassifier"
      create_function_query = f"""CREATE FUNCTION {function_name}
              TYPE HuggingFace
              TASK 'text-classification'
              MODEL 'martin-ha/toxic-comment-model'
          """
      execute_query_fetch_all(self.evadb, create_function_query)
  
      drop_table_query = """DROP TABLE IF EXISTS MyCSV;"""
      execute_query_fetch_all(self.evadb, drop_table_query)
  
      create_table_query = """CREATE TABLE IF NOT EXISTS MyCSV (
                  id INTEGER UNIQUE,
                  comment TEXT(30)
              );"""
      execute_query_fetch_all(self.evadb, create_table_query)
  
      load_table_query = (
          f"""LOAD CSV '{self.csv_file_path}' INTO MyCSV;"""
      )
      execute_query_fetch_all(self.evadb, load_table_query)
  
      select_query = f"SELECT {function_name}(comment) FROM MyCSV;"
      output = execute_query_fetch_all(self.evadb, select_query)
  
      # Test that output has 2 columns
      self.assertEqual(len(output.frames.columns), 2)
  
      # Test that there exists a column with function_name.label and each entry is either "POSITIVE" or "NEGATIVE"
      self.assertTrue(
          function_name.lower() + ".label" in output.frames.columns
      )
      self.assertTrue(
          all(
              x in ["non-toxic", "toxic"]
              for x in output.frames[function_name.lower() + ".label"]
          )
      )
  
      # Test that there exists a column with function_name.score
      # and each entry is a float
      self.assertTrue(
          function_name.lower() + ".score" in output.frames.columns
      )
      self.assertTrue(
          all(
              isinstance(x, float)
              for x in output.frames[function_name.lower() + ".score"]
          )
      )
  
      drop_function_query = f"DROP FUNCTION {function_name};"
      execute_query_fetch_all(self.evadb, drop_function_query)
  
imports: import unittest
  from test.util import create_text_csv, file_remove, get_evadb_for_testing
  import pytest
  from evadb.executor.executor_utils import ExecutorError
  from evadb.server.command_handler import execute_query_fetch_all
label_desc: Use image node_id 10 for calling the HuggingFaceTests obj's underlying member method code with example usage: obj.test_toxicity_classification() without return types