code: def test_restart_output_path(
      start_new_job, transformer, sagemaker_session
  ):
      transformer.output_path = None
      sagemaker_session.default_bucket.return_value = S3_BUCKET
  
      transformer.transform(DATA, job_name="job-1")
      assert transformer.output_path == "s3://{}/{}".format(
          S3_BUCKET, "job-1"
      )
  
      transformer.transform(DATA, job_name="job-2")
      assert transformer.output_path == "s3://{}/{}".format(
          S3_BUCKET, "job-2"
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import MagicMock, Mock, patch, PropertyMock
  from sagemaker.session_settings import SessionSettings
  from sagemaker.transformer import _TransformJob, Transformer
  from sagemaker.workflow.pipeline_context import PipelineSession, _PipelineConfig
  from sagemaker.inputs import BatchDataCaptureConfig
  from sagemaker.workflow.pipeline_definition_config import PipelineDefinitionConfig
  from tests.integ import test_local_mode
  from tests.unit import SAGEMAKER_CONFIG_TRANSFORM_JOB
label_desc: Use image node_id 35 for calling a global function with example usage: test_restart_output_path(start_new_job, transformer, sagemaker_session) without return types