def METHOD_NAME(
    framework_version, ecr_image, instance_type, sagemaker_regions
):
    if Version(framework_version) in SpecifierSet("<2.0"):
        pytest.skip("skip the test as torch.compile only supported after 2.0")
    if "graviton" not in ecr_image:
        pytest.skip("skip SM tests for inductor on c7g")
    model_dir = os.path.join(model_cpu_dir, "model_mnist_inductor.tar.gz")
    function_args = {
        "framework_version": framework_version,
        "instance_type": instance_type,
        "model_dir": model_dir,
    }
    invoke_pytorch_helper_function(
        ecr_image, sagemaker_regions, _test_mnist_distributed, function_args
    )