def METHOD_NAME(sagemaker_session):
    result_s3_uri = sagemaker_session.upload_data(UPLOAD_DATA_TESTS_SINGLE_FILE)
    uploaded_files_with_args = [
        (args[0], kwargs)
        for name, args, kwargs in sagemaker_session.boto_session.mock_calls
        if name == "resource().Object().upload_file"
    ]
    assert result_s3_uri == "s3://{}/data/{}".format(BUCKET_NAME, SINGLE_FILE_NAME)
    assert len(uploaded_files_with_args) == 1
    (file, kwargs) = uploaded_files_with_args[0]
    assert os.path.exists(file)
    assert kwargs["ExtraArgs"] is None