code: def test_rl_image_uris(load_config_and_file_name):
      config, filename = load_config_and_file_name
      framework = filename.split(".json")[0]
      VERSIONS = config["versions"]
      processors = config["processors"]
      for version in VERSIONS:
          ACCOUNTS = config["versions"][version]["registries"]
          py_versions = config["versions"][version].get(
              "py_versions", [None]
          )
          repo = config["versions"][version]["repository"]
          tag_prefix = config["versions"][version]["tag_prefix"]
          for processor in processors:
              instance_type = INSTANCE_TYPES[processor]
              for py_version in py_versions:
                  for region in ACCOUNTS.keys():
                      uri = image_uris.retrieve(
                          framework,
                          region,
                          version=version,
                          instance_type=instance_type,
                      )
  
                      expected = expected_uris.framework_uri(
                          repo,
                          tag_prefix,
                          ACCOUNTS[region],
                          py_version=py_version,
                          processor=processor,
                          region=region,
                      )
  
                      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_rl_image_uris(load_config_and_file_name) without return types