def METHOD_NAME(
    model_reference: HuggingFaceModelReference,
    training_config: TrainingConfig,
    train_data: Dataset,
    eval_data: Dataset,
    tokenizer: PreTrainedTokenizerBase,
) -> StoredModel:
    model = do_train(
        model_reference,
        training_config,
        train_data,
        eval_data,
        tokenizer,
    )
    stored_model = StoredModel.store(
        model, training_config.storage_directory, base_model_reference=model_reference
    )
    return stored_model