class_docstr: Class representing a remote function stored in S3.
docstr: Upload serialized function and arguments to s3.
  
  Args:
      serialized_data (_SerializedData): The serialized function
          and function arguments of a function step.
docstr_tok: ["Upload","serialized","function","and","arguments","to","s3",".","Args",":","serialized_data","(","_SerializedData",")",":","The","serialized","function","and","function","arguments","of","a","function","step","."]
code: def save_pipeline_step_function(self, serialized_data):
      """Upload serialized function and arguments to s3.
  
      Args:
          serialized_data (_SerializedData): The serialized function
              and function arguments of a function step.
      """
  
      logger.info(
          "Uploading serialized function code to %s",
          s3_path_join(self.func_upload_path, FUNCTION_FOLDER),
      )
      serialization._upload_payload_and_metadata_to_s3(
          bytes_to_upload=serialized_data.func,
          hmac_key=self.hmac_key,
          s3_uri=s3_path_join(self.func_upload_path, FUNCTION_FOLDER),
          sagemaker_session=self.sagemaker_session,
          s3_kms_key=self.s3_kms_key,
      )
  
      logger.info(
          "Uploading serialized function arguments to %s",
          s3_path_join(self.func_upload_path, ARGUMENTS_FOLDER),
      )
      serialization._upload_payload_and_metadata_to_s3(
          bytes_to_upload=serialized_data.args,
          hmac_key=self.hmac_key,
          s3_uri=s3_path_join(self.func_upload_path, ARGUMENTS_FOLDER),
          sagemaker_session=self.sagemaker_session,
          s3_kms_key=self.s3_kms_key,
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/remote_function/core/stored_function.py
imports: from __future__ import absolute_import
  import os
  from dataclasses import dataclass
  from typing import Any
  from sagemaker.s3 import s3_path_join
  from sagemaker.remote_function import logging_config
  from sagemaker.remote_function.core.pipeline_variables import Context, resolve_pipeline_variables
  import sagemaker.remote_function.core.serialization
  from sagemaker.session import Session
label_desc: Use image node_id 3 for calling the StoredFunction obj's underlying member method code with example usage: obj.save_pipeline_step_function(serialized_data) without return types