code: def test_transformer_init(sagemaker_session):
      transformer = Transformer(
          MODEL_NAME,
          INSTANCE_COUNT,
          INSTANCE_TYPE,
          sagemaker_session=sagemaker_session,
      )
  
      assert transformer.model_name == MODEL_NAME
      assert transformer.instance_count == INSTANCE_COUNT
      assert transformer.instance_type == INSTANCE_TYPE
      assert transformer.sagemaker_session == sagemaker_session
  
      assert transformer._current_job_name is None
      assert transformer.latest_transform_job is None
      assert transformer._reset_output_path is False
  
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 8 for calling a global function with example usage: test_transformer_init(sagemaker_session) without return types