code: def save_s3(path: str, obj, pickle_fn, verbose=True):
      import boto3
  
      if verbose:
          logger.info(f"save object to {path}")
      with tempfile.TemporaryFile() as f:
          pickle_fn(obj, f)
          f.flush()
          f.seek(0)
  
          bucket, key = s3_utils.s3_path_to_bucket_prefix(path)
          s3_client = boto3.client("s3")
          try:
              config = (
                  boto3.s3.transfer.TransferConfig()
              )  # enable multipart uploading for files larger than 8MB
              s3_client.upload_fileobj(f, bucket, key, Config=config)
          except:
              logger.error("Failed to save object to s3")
              raise
  
file_path: autogluon/common/src/autogluon/common/savers/save_pkl.py
imports: import logging
  import os
  import pickle
  import tempfile
  from ..utils import compression_utils, s3_utils
label_desc: Use image node_id 3 for calling a global function with example usage: save_s3(path, obj, pickle_fn, verbose) without return types