def METHOD_NAME(
    kind, requirements, expected_base_image, expected_image
):
    launcher = mlrun.launcher.remote.ClientRemoteLauncher()
    runtime = mlrun.code_to_function(
        name="test",
        kind=kind,
        filename=str(func_path),
        handler=handler,
        image="mlrun/mlrun",
        requirements=requirements,
    )
    launcher.prepare_image_for_deploy(runtime)
    assert runtime.spec.build.base_image == expected_base_image
    assert runtime.spec.image == expected_image