code: def test_prepare_container_def(time, sagemaker_session):
      model = DummyFrameworkModel(sagemaker_session)
      assert model.prepare_container_def(INSTANCE_TYPE) == {
          "Environment": {
              "SAGEMAKER_PROGRAM": ENTRY_POINT,
              "SAGEMAKER_SUBMIT_DIRECTORY": "s3://mybucket/mi-2017-10-10-14-14-15/sourcedir.tar.gz",
              "SAGEMAKER_CONTAINER_LOG_LEVEL": "20",
              "SAGEMAKER_REGION": REGION,
          },
          "Image": MODEL_IMAGE,
          "ModelDataUrl": MODEL_DATA,
      }
  
imports: from __future__ import absolute_import
  import os
  import subprocess
  from sagemaker.model import FrameworkModel
  from sagemaker.predictor import Predictor
  import pytest
  from mock import MagicMock, Mock, patch
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 2 for calling a global function with example usage: test_prepare_container_def(time, sagemaker_session) without return types