def METHOD_NAME(self):
    trainer = self.build_trainer(self.model_id, 'v1.0.1')
    trainer.train()
    evaluate_result = trainer.evaluate()
    self.assertAlmostEqual(evaluate_result['accuracy'], 0.95, delta=0.1)
    results_files = os.listdir(self.tmp_dir)
    self.assertIn(ModelFile.TRAIN_OUTPUT_DIR, results_files)
    output_dir = os.path.join(self.tmp_dir, ModelFile.TRAIN_OUTPUT_DIR)
    pipeline_ins = pipeline(
        task=Tasks.faq_question_answering, model=self.model_id)
    result_before = pipeline_ins(self.param)
    self.assertEqual(result_before['output'][0][0]['label'], '1')
    self.assertAlmostEqual(
        result_before['output'][0][0]['score'], 0.2, delta=0.2)
    pipeline_ins = pipeline(
        task=Tasks.faq_question_answering, model=output_dir)
    result_after = pipeline_ins(self.param)
    self.assertEqual(result_after['output'][0][0]['label'], '1')
    self.assertAlmostEqual(
        result_after['output'][0][0]['score'], 0.8, delta=0.2)