class_docstr: Handle end-to-end training and deployment of user-provided TensorFlow code.
class_docstr_tok: ["Handle","end-to-end","training","and","deployment","of","user-provided","TensorFlow","code","."]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _default_s3_path(self, directory, mpi=False):
      """Placeholder docstring"""
      local_code = utils.get_config_value(
          "local.local_code", self.sagemaker_session.config
      )
      if self.sagemaker_session.local_mode and local_code:
          return "/opt/ml/shared/{}".format(directory)
      if mpi:
          return "/opt/ml/model"
      if self._current_job_name:
          if is_pipeline_variable(self.output_path):
              return s3.s3_path_join(
                  "s3://",
                  self.sagemaker_session.default_bucket(),
                  self.sagemaker_session.default_bucket_prefix,
                  self._current_job_name,
                  directory,
              )
          return s3.s3_path_join(
              self.output_path, self._current_job_name, directory
          )
      return None
  
imports: from __future__ import absolute_import
  import logging
  from typing import Optional, Union, Dict
  from packaging import version
  from sagemaker import image_uris, s3, utils
  from sagemaker.deprecations import renamed_kwargs
  from sagemaker.estimator import Framework, EstimatorBase
  import sagemaker.fw_utils
  from sagemaker.tensorflow import defaults
  from sagemaker.tensorflow.model import TensorFlowModel
  from sagemaker.transformer import Transformer
  from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
  from sagemaker.workflow import is_pipeline_variable
  from sagemaker.tensorflow.training_compiler.config import TrainingCompilerConfig
  from sagemaker.workflow.entities import PipelineVariable
  from sagemaker.utils import format_tags
label_desc: Use image node_id 8 for calling the TensorFlow obj's underlying member method code with example usage: obj._default_s3_path(directory, mpi) and returns: None, str, str, s3, s3