code: def test_transformer_init_optional_params(sagemaker_session):
      strategy = "MultiRecord"
      assemble_with = "Line"
      accept = "text/csv"
      max_concurrent_transforms = 100
      max_payload = 100
      tags = [{"Key": "foo", "Value": "bar"}]
      env = {"FOO": "BAR"}
  
      transformer = Transformer(
          MODEL_NAME,
          INSTANCE_COUNT,
          INSTANCE_TYPE,
          strategy=strategy,
          assemble_with=assemble_with,
          output_path=OUTPUT_PATH,
          output_kms_key=KMS_KEY_ID,
          accept=accept,
          max_concurrent_transforms=max_concurrent_transforms,
          max_payload=max_payload,
          tags=tags,
          env=env,
          base_transform_job_name=JOB_NAME,
          sagemaker_session=sagemaker_session,
          volume_kms_key=KMS_KEY_ID,
      )
  
      assert transformer.model_name == MODEL_NAME
      assert transformer.strategy == strategy
      assert transformer.env == env
      assert transformer.output_path == OUTPUT_PATH
      assert transformer.output_kms_key == KMS_KEY_ID
      assert transformer.accept == accept
      assert transformer.assemble_with == assemble_with
      assert transformer.instance_count == INSTANCE_COUNT
      assert transformer.instance_type == INSTANCE_TYPE
      assert transformer.volume_kms_key == KMS_KEY_ID
      assert (
          transformer.max_concurrent_transforms
          == max_concurrent_transforms
      )
      assert transformer.max_payload == max_payload
      assert transformer.tags == tags
      assert transformer.base_transform_job_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 9 for calling a global function with example usage: test_transformer_init_optional_params(sagemaker_session) without return types