code: def test_prepare_container_def_with_network_isolation(
      time, sagemaker_session
  ):
      model = DummyFrameworkModel(
          sagemaker_session, enable_network_isolation=True
      )
      assert model.prepare_container_def(INSTANCE_TYPE) == {
          "Environment": {
              "SAGEMAKER_PROGRAM": ENTRY_POINT,
              "SAGEMAKER_SUBMIT_DIRECTORY": "/opt/ml/model/code",
              "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 3 for calling a global function with example usage: test_prepare_container_def_with_network_isolation(time, sagemaker_session) without return types