def METHOD_NAME(self, model: FLModel) -> Union[str, FLModel]:
    """Called by the framework to perform training. Can be called many times during the lifetime of the Learner.
    Args:
        model: the training input model
    Returns: train result as a FLModel if successful; or return code as str if failed.
    """
    pass