def METHOD_NAME(self,
             model_id,
             train_dataset,
             eval_dataset,
             name=Trainers.nlp_base_trainer,
             cfg_modify_fn=None,
             **kwargs):
    kwargs = dict(
        model=model_id,
        train_dataset=train_dataset,
        eval_dataset=eval_dataset,
        work_dir=self.tmp_dir,
        cfg_modify_fn=cfg_modify_fn,
        **kwargs)
    os.environ['LOCAL_RANK'] = '0'
    trainer = build_trainer(name=name, default_args=kwargs)
    trainer.train()
    results_files = os.listdir(self.tmp_dir)
    self.assertIn(f'{trainer.timestamp}.log.json', results_files)
    for i in range(10):
        self.assertIn(f'epoch_{i+1}.pth', results_files)