def METHOD_NAME(
    s3_source_dir_download, s3_source_dir_upload, mock_tc_save
):
    session = Mock()
    s3_base_uri = random_s3_uri()
    session.sagemaker_client.search.return_value = {"Results": []}
    run = Run(
        experiment_name=TEST_EXP_NAME,
        run_name=TEST_RUN_NAME,
        experiment_display_name=TEST_EXP_DISPLAY_NAME,
        run_display_name=TEST_RUN_DISPLAY_NAME,
        sagemaker_session=session,
    )
    stored_function = StoredFunction(
        sagemaker_session=session, s3_base_uri=s3_base_uri, s3_kms_key=KMS_KEY, hmac_key=HMAC_KEY
    )
    with pytest.raises(SerializationError) as e:
        stored_function.save(log_bigger, 1, 2, run)
        assert isinstance(e.__cause__, NotImplementedError)