code: def test_graviton_sklearn_image_scope_specified_x86_instance(
      graviton_sklearn_unsupported_versions,
  ):
      for sklearn_version in graviton_sklearn_unsupported_versions:
          for instance_type in GRAVITON_INSTANCE_TYPES:
              with pytest.raises(ValueError) as error:
                  image_uris.retrieve(
                      "sklearn",
                      "us-west-2",
                      version=sklearn_version,
                      image_scope="inference_graviton",
                      instance_type="ml.m5.xlarge",
                  )
              assert "Unsupported instance type: m5." in str(error)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/image_uris/test_graviton.py
imports: from __future__ import absolute_import
  from sagemaker import image_uris
  from tests.unit.sagemaker.image_uris import expected_uris
  from sagemaker.fw_utils import GRAVITON_ALLOWED_FRAMEWORKS
  import pytest
label_desc: Use image node_id 12 for calling a global function with example usage: test_graviton_sklearn_image_scope_specified_x86_instance(graviton_sklearn_unsupported_versions) without return types