code: def test_jumpstart_no_supported_instance_types(
      patched_get_model_specs,
  ):
      patched_get_model_specs.side_effect = get_special_model_spec
  
      model_id, model_version = "no-supported-instance-types-model", "*"
      region = "us-west-2"
  
      with pytest.raises(ValueError):
          instance_types.retrieve_default(
              region=region,
              model_id=model_id,
              model_version=model_version,
              scope="training",
          )
  
      with pytest.raises(ValueError):
          instance_types.retrieve_default(
              region=region,
              model_id=model_id,
              model_version=model_version,
              scope="inference",
          )
  
      with pytest.raises(ValueError):
          instance_types.retrieve(
              region=region,
              model_id=model_id,
              model_version=model_version,
              scope="training",
          )
  
      with pytest.raises(ValueError):
          instance_types.retrieve(
              region=region,
              model_id=model_id,
              model_version=model_version,
              scope="inference",
          )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/instance_types/jumpstart/test_instance_types.py
imports: from __future__ import absolute_import
  from unittest.mock import Mock
  import boto3
  from mock.mock import patch
  import pytest
  from sagemaker import instance_types
  from tests.unit.sagemaker.jumpstart.utils import get_spec_from_base_spec, get_special_model_spec
label_desc: Use image node_id 3 for calling a global function with example usage: test_jumpstart_no_supported_instance_types(patched_get_model_specs) without return types