code: def test_autogluon_uris(load_config, scope):
      VERSIONS = load_config[scope]["versions"]
      for version in VERSIONS:
          ACCOUNTS = load_config[scope]["versions"][version][
              "registries"
          ]
          py_versions = load_config[scope]["versions"][version][
              "py_versions"
          ]
          processors = load_config[scope]["versions"][version].get(
              "processors", ["cpu"]
          )
  
          for processor in processors:
              instance_type = INSTANCE_TYPES[processor]
              for py_version in py_versions:
                  for region in ACCOUNTS.keys():
                      uri = image_uris.retrieve(
                          "autogluon",
                          region=region,
                          version=version,
                          py_version=py_version,
                          image_scope=scope,
                          instance_type=instance_type,
                      )
                      expected = expected_uris.framework_uri(
                          f"autogluon-{scope}",
                          version,
                          ACCOUNTS[region],
                          py_version=py_version,
                          region=region,
                          processor=processor,
                      )
  
                      assert uri == expected
  
imports: from __future__ import absolute_import
  import pytest
  from sagemaker import image_uris
  from tests.unit.sagemaker.image_uris import expected_uris
label_desc: Use image node_id 1 for calling a global function with example usage: test_autogluon_uris(load_config, scope) without return types