def METHOD_NAME(self, mock_save_local_model):
    fl_ctx = FLContext()
    learner = PTLearner(epochs=1)
    learner.initialize(parts={}, fl_ctx=fl_ctx)
    data = Shareable()
    result = learner.train(data, fl_ctx=FLContext(), abort_signal=Signal())
    assert result.get_return_code() == ReturnCode.BAD_TASK_DATA