code: def test_tc_with_dataclass():
      train_args = QATrainArgs(learning_rate=0.01, num_train_epochs=1)
  
      happy_qa.train("../data/qa/train-eval.csv", args=train_args)
  
      eval_args = QAEvalArgs()
  
      result_eval = happy_qa.eval(
          "../data/qa/train-eval.csv", args=eval_args
      )
      assert type(result_eval.loss) == float
  
      test_args = QATestArgs()
  
      result_test = happy_qa.test("../data/qa/test.csv", args=test_args)
      assert type(result_test[0].answer) == str
  
file_path: happy-transformer/tests/test_qa.py
imports: from happytransformer.happy_question_answering import HappyQuestionAnswering, QATrainArgs, QAEvalArgs, QATestArgs
  import pytest
  from pytest import approx
  from tests import happy_qa
label_desc: Use image node_id 8 for calling a global function with example usage: test_tc_with_dataclass() without return types