code: def test_stop_transform_job(sagemaker_session, transformer):
      sagemaker_session.stop_transform_job = Mock(
          name="stop_transform_job"
      )
      transformer.latest_transform_job = _TransformJob(
          sagemaker_session, JOB_NAME
      )
  
      transformer.stop_transform_job()
  
      sagemaker_session.stop_transform_job.assert_called_once_with(
          name=JOB_NAME
      )
  
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 36 for calling a global function with example usage: test_stop_transform_job(sagemaker_session, transformer) without return types