def METHOD_NAME(mar_file_path, model_store, torchserve):
    """
    Register the model in torchserve
    """
    shutil.copy(mar_file_path, model_store)
    file_name = Path(mar_file_path).name
    model_name = Path(file_name).stem
    test_utils.reg_resp = test_utils.METHOD_NAME(model_name, file_name)
    yield model_name
    test_utils.unregister_model(model_name)