code: def example_2_4():
      from happytransformer import HappyTextClassification
  
      # --------------------------------------#
      happy_tc = HappyTextClassification(
          model_type="DISTILBERT",
          model_name="distilbert-base-uncased-finetuned-sst-2-english",
          num_labels=2,
      )  # Don't forget to set num_labels!
      result = happy_tc.test("../../data/tc/test.csv")
      print(type(result))  # <class 'list'>
      print(
          result
      )  # [TextClassificationResult(label='LABEL_1', score=0.9998401999473572), TextClassificationResult(label='LABEL_0', score=0.9772131443023682)...
      print(
          type(result[0])
      )  # <class 'happytransformer.happy_text_classification.TextClassificationResult'>
      print(
          result[0]
      )  # TextClassificationResult(label='POSITIVE', score=0.9998401999473572)
      print(result[0].label)
  
file_path: happy-transformer/examples/text_classification/readme_examples.py
imports: from happytransformer import HappyTextClassification, TCTrainArgs, TCEvalArgs, TCTestArgs
  from happytransformer import HappyTokenClassification
label_desc: Use image node_id 5 for calling a global function with example usage: example_2_4() without return types