def METHOD_NAME(self):
    model = _make_seq2seq_model(self.get_temp_dir())
    optimizer = make_optimizer("SGD", 1.0)
    trainer = training.Trainer(model, optimizer)
    empty_file = os.path.join(self.get_temp_dir(), "train.txt")
    with open(empty_file, "w"):
        pass
    dataset = model.examples_inputter.make_training_dataset(
        empty_file, empty_file, 32
    )
    with self.assertRaisesRegex(RuntimeError, "No training steps"):
        trainer(dataset)