code: def test_trainium_unsupported_framework(load_config, scope):
      VERSIONS = load_config[scope]["versions"]
      for version in VERSIONS:
          ACCOUNTS = load_config[scope]["versions"][version][
              "registries"
          ]
          for region in ACCOUNTS.keys():
              with pytest.raises(ValueError) as error:
                  image_uris.retrieve(
                      "autogluon",
                      region,
                      instance_type="ml.trn1.xlarge",
                      version=version,
                  )
                  expectedErr = (
                      f"Unsupported framework: autogluon. Supported framework(s) for Trainium instances: "
                      f"{TRAINIUM_ALLOWED_FRAMEWORKS}."
                  )
                  assert expectedErr in str(error)
  
imports: from __future__ import absolute_import
  from sagemaker import image_uris
  from tests.unit.sagemaker.image_uris import expected_uris
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_trainium_unsupported_framework(load_config, scope) without return types