code: def test_jumpstart_image_uri_instance_variants():
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.p3.200xlarge", region="us-west-2"
          )
          == "763104351884.dkr.ecr.us-west-2.amazonaws.com/stud-gpu"
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.g9.12xlarge", region="us-west-2"
          )
          == "763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-inference:"
          "1.13.1-transformers4.26.0-gpu-py39-cu117-ubuntu20.04"
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.p3.2xlarge", region="us-west-2"
          )
          == "763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-inference:"
          "1.13.1-transformers4.26.0-gpu-py39-cu117-ubuntu20.04"
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.g4dn.2xlarge", region="us-west-2"
          )
          == "763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-inference:"
          "1.13.1-transformers4.26.0-gpu-py39-cu117-ubuntu20.04"
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.c2.xlarge", region="us-west-2"
          )
          == "867930986793.dkr.us-west-2.amazonaws.com/cpu-blah"
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="local", region="us-west-2"
          )
          == "867930986793.dkr.us-west-2.amazonaws.com/cpu-blah"
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="local_gpu", region="us-west-2"
          )
          is None
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.g5.12xlarge", region="us-west-2"
          )
          is None
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.c3.xlarge", region="us-west-2"
          )
          is None
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.c2.xlarge", region="us-east-2000"
          )
          is None
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_image_uri(
              instance_type="ml.c3.xlarge", region="us-east-2000"
          )
          is None
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/jumpstart/test_types.py
imports: from __future__ import absolute_import
  import copy
  from sagemaker.jumpstart.types import JumpStartECRSpecs, JumpStartHyperparameter, JumpStartInstanceTypeVariants, JumpStartModelSpecs, JumpStartModelHeader
  from tests.unit.sagemaker.jumpstart.constants import BASE_SPEC
label_desc: Use image node_id 4 for calling a global function with example usage: test_jumpstart_image_uri_instance_variants() without return types