class_docstr: Placeholder docstring
class_docstr_tok: ["Placeholder","docstring"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _update_save_path(self, save_path=None):
      """Placeholder docstring"""
      if save_path is not None:
          self.save_path = save_path
      else:
          self.save_path = (
              "/tmp/sagemaker/save/"
              + datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
          )
  
      logger.info("Save path: %s", self.save_path)
      self.model_path = f"{self.save_path}/{self.model_name}"
      self.requirements_path = f"{self.save_path}/requirements.txt"
      self.schema_path = f"{self.save_path}/schema"
      self.metadata_path = f"{self.save_path}/metadata.yaml"
      self.inference_spec_path = (
          f"{self.save_path}/{self.inference_spec_name}"
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/save_retrive/version_1_0_0/save/save_handler.py
imports: from __future__ import absolute_import
  from typing import Optional, Type, Any
  from dataclasses import dataclass, field
  import datetime
  import logging
  from pathlib import Path
  from sagemaker.serve.save_retrive.version_1_0_0.save.utils import upload_to_s3, capture_dependencies, capture_optimization_metadata, detect_framework_and_its_versions
  from sagemaker import Session
  from sagemaker.model import Model
  from sagemaker.serve.builder.schema_builder import SchemaBuilder
  from sagemaker.serve.spec.inference_spec import InferenceSpec
  from sagemaker.serve.save_retrive.version_1_0_0.metadata.metadata import Metadata
  from sagemaker.serve.save_retrive.version_1_0_0.save.framework.pytorch_handler import PyTorchHandler
  from sagemaker.serve.save_retrive.version_1_0_0.save.framework.xgboost_handler import XGBoostHandler
label_desc: Use image node_id 2 for calling the SaveHandler obj's underlying member method code with example usage: obj._update_save_path(save_path) without return types