def METHOD_NAME(
    ecr_image, sagemaker_session, instance_type, framework_version
):
    """
    Tests SMDataParallel single-node command via script mode
    """
    validate_or_skip_smdataparallel(ecr_image)
    instance_type = "ml.p3.16xlarge"
    distribution = {"smdistributed": {"dataparallel": {"enabled": True}}}
    estimator = TensorFlow(
        entry_point="smdataparallel_mnist_script_mode.sh",
        source_dir=MNIST_PATH,
        role="SageMakerRole",
        instance_type=instance_type,
        instance_count=1,
        image_uri=ecr_image,
        framework_version=framework_version,
        py_version="py3",
        sagemaker_session=sagemaker_session,
        distribution=distribution,
    )
    estimator.fit(job_name=unique_name_from_base("test-tf-smdataparallel"))