code: def test_jumpstart_no_supported_resource_requirements(
      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"
      mock_client = boto3.client("s3")
      mock_session = Mock(s3_client=mock_client)
  
      default_inference_resource_requirements = (
          resource_requirements.retrieve_default(
              region=region,
              model_id=model_id,
              model_version=model_version,
              scope="inference",
              sagemaker_session=mock_session,
          )
      )
      assert default_inference_resource_requirements is None
  
      patched_get_model_specs.assert_called_once_with(
          region=region,
          model_id=model_id,
          version=model_version,
          s3_client=mock_client,
      )
      patched_get_model_specs.reset_mock()
  
      with pytest.raises(NotImplementedError):
          resource_requirements.retrieve_default(
              region=region,
              model_id=model_id,
              model_version=model_version,
              scope="training",
          )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/resource_requirements/jumpstart/test_resource_requirements.py
imports: from __future__ import absolute_import
  from unittest.mock import Mock
  import boto3
  from mock.mock import patch
  import pytest
  from sagemaker import resource_requirements
  from tests.unit.sagemaker.jumpstart.utils import get_spec_from_base_spec, get_special_model_spec
label_desc: Use image node_id 2 for calling a global function with example usage: test_jumpstart_no_supported_resource_requirements(patched_get_model_specs) without return types