code: def test_transformer_creation_without_optional_args(
      name_from_base,
      create_model,
      sagemaker_session,
      tensorflow_inference_version,
      tensorflow_inference_py_version,
  ):
      if version.Version(
          tensorflow_inference_version
      ) < version.Version("1.11"):
          pytest.skip(
              "Legacy TF version requires explicit image URI, and "
              "this logic is tested in test_create_model_with_custom_image."
          )
  
      model_name = "generated-model-name"
      name_from_base.return_value = model_name
  
      model = Mock()
      create_model.return_value = model
  
      base_job_name = "tensorflow"
      tf = TensorFlow(
          entry_point=SCRIPT_PATH,
          framework_version=tensorflow_inference_version,
          py_version=tensorflow_inference_py_version,
          role=ROLE,
          sagemaker_session=sagemaker_session,
          instance_count=INSTANCE_COUNT,
          instance_type=INSTANCE_TYPE,
          base_job_name=base_job_name,
      )
      tf.latest_training_job = _TrainingJob(
          sagemaker_session, "some-job-name"
      )
      tf.transformer(INSTANCE_COUNT, INSTANCE_TYPE)
  
      name_from_base.assert_called_with(base_job_name)
      create_model.assert_called_with(
          role=ROLE,
          vpc_config_override="VPC_CONFIG_DEFAULT",
          entry_point=None,
          enable_network_isolation=False,
          name=model_name,
      )
      model.transformer.assert_called_with(
          INSTANCE_COUNT,
          INSTANCE_TYPE,
          accept=None,
          assemble_with=None,
          env=None,
          max_concurrent_transforms=None,
          max_payload=None,
          output_kms_key=None,
          output_path=None,
          strategy=None,
          tags=None,
          volume_kms_key=None,
      )
  
imports: from __future__ import absolute_import
  import json
  import logging
  import os
  from mock import patch, Mock, MagicMock
  from packaging import version
  import pytest
  from sagemaker.estimator import _TrainingJob
  from sagemaker.session_settings import SessionSettings
  from sagemaker.tensorflow import TensorFlow
  from sagemaker.instance_group import InstanceGroup
  from sagemaker.workflow.parameters import ParameterString, ParameterBoolean
  from tests.unit import DATA_DIR
label_desc: Use image node_id 10 for calling a global function with example usage: test_transformer_creation_without_optional_args(name_from_base, create_model, sagemaker_session, tensorflow_inference_version, tensorflow_inference_py_version) without return types