code: def test_compile_with_pytorch_neo_in_ml_inf(session):
      session.return_value.boto_region_name = REGION
      session.return_value.sagemaker_config = {}
  
      model = _create_model()
      model.compile(
          target_instance_family="ml_inf1",
          input_shape={"data": [1, 3, 1024, 1024]},
          output_path="s3://output",
          role="role",
          framework="pytorch",
          framework_version="1.6",
          job_name="compile-model",
      )
  
      assert (
          "{}.dkr.ecr.{}.amazonaws.com/sagemaker-inference-pytorch:1.6-cpu-py3".format(
              NEO_REGION_ACCOUNT, REGION
          )
          != model.image_uri
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.model import Model
label_desc: Use image node_id 20 for calling a global function with example usage: test_compile_with_pytorch_neo_in_ml_inf(session) without return types