def METHOD_NAME(dummy_lesion, rtol, tmp_path):
    """Run the CLI script and verify that the lesion measurements match
    expected values."""
    # Run the analysis on the dummy lesion file
    path_lesion, expected_measurements = dummy_lesion
    sct_analyze_lesion.main(argv=['-m', path_lesion,
                                  '-s', sct_test_path("t2", "t2_seg-manual.nii.gz"),
                                  '-ofolder', str(tmp_path)])
    # Load analysis results from pickled pandas.Dataframe
    _, fname, _ = extract_fname(path_lesion)
    with open(tmp_path/f"{fname}_analysis.pkl", 'rb') as f:
        measurements = pickle.load(f)['measures']
    # Validate analysis results
    for key, expected_value in expected_measurements.items():
        if key == 'volume [mm3]':
            np.testing.assert_equal(measurements.at[0, key], expected_value)
        else:
            # The length/diameter won't match exactly due to angle adjustment
            # from spinal cord centerline curvature
            np.testing.assert_allclose(measurements.at[0, key],
                                       expected_value, rtol=rtol)
            # The values will be adjusted according to the cos of the angle
            # between the spinal cord centerline and the S-I axis, as per:
            # https://github.com/spinalcordtoolbox/spinalcordtoolbox/pull/3681#discussion_r804822552
            if key == 'max_equivalent_diameter [mm]':
                assert measurements.at[0, key] < expected_value
            elif key == 'length [mm]':
                assert measurements.at[0, key] > expected_value