code: def test_model_prepare_container_def_no_instance_type_or_image(
      mxnet_inference_version, mxnet_inference_py_version
  ):
      model = MXNetModel(
          MODEL_DATA,
          role=ROLE,
          entry_point=SCRIPT_PATH,
          framework_version=mxnet_inference_version,
          py_version=mxnet_inference_py_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 logging
  import json
  import os
  import pytest
  from mock import MagicMock, Mock, ANY
  from mock import patch
  from pkg_resources import parse_version
  from sagemaker.fw_utils import UploadedCode
  from sagemaker.drift_check_baselines import DriftCheckBaselines
  from sagemaker.metadata_properties import MetadataProperties
  from sagemaker.model_metrics import FileSource, MetricsSource, ModelMetrics
  from sagemaker.mxnet import defaults
  from sagemaker.mxnet import MXNet
  from sagemaker.mxnet import MXNetPredictor, MXNetModel
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 20 for calling a global function with example usage: test_model_prepare_container_def_no_instance_type_or_image(mxnet_inference_version, mxnet_inference_py_version) without return types