code: def test_tfs_model_with_custom_image(
      sagemaker_session, tensorflow_inference_version
  ):
      model = TensorFlowModel(
          "s3://some/data.tar.gz",
          role=ROLE,
          framework_version=tensorflow_inference_version,
          image_uri="my-image",
          sagemaker_session=sagemaker_session,
      )
      cdef = model.prepare_container_def(INSTANCE_TYPE)
      assert cdef["Image"] == "my-image"
  
imports: from __future__ import absolute_import
  import io
  import json
  import logging
  import mock
  import pytest
  from mock import Mock, patch, ANY
  from sagemaker.serializers import CSVSerializer, IdentitySerializer
  from sagemaker.tensorflow import TensorFlow, TensorFlowModel, TensorFlowPredictor
label_desc: Use image node_id 7 for calling a global function with example usage: test_tfs_model_with_custom_image(sagemaker_session, tensorflow_inference_version) without return types