code: def test_xgboost_uris(load_config, scope):
      VERSIONS = load_config[scope]["versions"]
      for version in VERSIONS:
          ACCOUNTS = load_config[scope]["versions"][version][
              "registries"
          ]
  
          processors = load_config[scope]["versions"][version].get(
              "processors", [None]
          )
          py_versions = load_config[scope]["versions"][version].get(
              "py_versions", [None]
          )
          repo = load_config[scope]["versions"][version]["repository"]
          for processor in processors:
              for py_version in py_versions:
                  for region in ACCOUNTS.keys():
                      uri = image_uris.retrieve(
                          framework="xgboost",
                          py_version=py_version,
                          region=region,
                          version=version,
                      )
  
                      if version in ALGO_VERSIONS:
                          expected = expected_uris.algo_uri(
                              "xgboost",
                              ACCOUNTS[region],
                              region,
                              version=version,
                          )
                      else:
                          expected = expected_uris.framework_uri(
                              repo,
                              version,
                              ACCOUNTS[region],
                              region=region,
                              py_version=py_version,
                              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_xgboost_uris(load_config, scope) without return types