code: def test_save_s3_paths_verification(
      serialize_func,
      serialize_obj,
      step_name,
      execution_id,
      upload_path,
  ):
      session = Mock()
      s3_base_uri = "s3://base_uri/"
  
      stored_function = StoredFunction(
          sagemaker_session=session,
          s3_base_uri=s3_base_uri,
          s3_kms_key=KMS_KEY,
          hmac_key=HMAC_KEY,
          context=Context(
              step_name=step_name,
              execution_id=execution_id,
              func_step_s3_dir=PIPELINE_BUILD_TIME
              if step_name
              else None,
          ),
      )
  
      stored_function.save(quadratic, (3))
  
      serialize_func.assert_called_once_with(
          func=quadratic,
          sagemaker_session=session,
          s3_uri=(upload_path + FUNCTION_FOLDER),
          s3_kms_key=KMS_KEY,
          hmac_key=HMAC_KEY,
      )
      serialize_obj.assert_called_once_with(
          obj=((3,), {}),
          sagemaker_session=session,
          s3_uri=(upload_path + ARGUMENT_FOLDER),
          hmac_key=HMAC_KEY,
          s3_kms_key=KMS_KEY,
      )
  
imports: from __future__ import absolute_import
  import pytest
  import random
  import string
  from mock import MagicMock, Mock, patch
  from sagemaker.experiments.experiment import Experiment
  from sagemaker.experiments.run import Run
  from sagemaker.experiments.trial import _Trial
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.remote_function.core.stored_function import StoredFunction, JSON_SERIALIZED_RESULT_KEY, _SerializedData
  from sagemaker.remote_function.core.serialization import deserialize_obj_from_s3, serialize_obj_to_s3, CloudpickleSerializer
  from sagemaker.remote_function.core.pipeline_variables import Context, convert_pipeline_variables_to_pickleable
  from sagemaker.remote_function.errors import SerializationError
  from sagemaker.workflow.function_step import _FunctionStep, DelayedReturn
  from sagemaker.workflow.parameters import ParameterFloat
  from sagemaker.utils import sagemaker_timestamp
  from tests.unit.sagemaker.experiments.helpers import TEST_EXP_DISPLAY_NAME, TEST_EXP_NAME, TEST_RUN_DISPLAY_NAME, TEST_RUN_NAME, mock_tc_load_or_create_func, mock_trial_load_or_create_func
label_desc: Use image node_id 8 for calling a global function with example usage: test_save_s3_paths_verification(serialize_func, serialize_obj, step_name, execution_id, upload_path) without return types