code: def test_model_prepare_container_def_no_instance_type_or_image(
      tensorflow_inference_version,
  ):
      model = TensorFlowModel(
          "s3://some/data.tar.gz",
          role=ROLE,
          framework_version=tensorflow_inference_version,
      )
  
      with pytest.raises(ValueError) as e:
          model.prepare_container_def()
  
      expected_msg = "Must supply either an instance type (for choosing CPU vs GPU) or an image URI."
      assert expected_msg in str(e)
  
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 11 for calling a global function with example usage: test_model_prepare_container_def_no_instance_type_or_image(tensorflow_inference_version) without return types