code: def test_chainer_uris(load_config):
      VERSIONS = load_config["versions"]
      for version in VERSIONS:
          ALGO_ACCOUNTS = load_config["versions"][version]["registries"]
          py_versions = load_config["versions"][version]["py_versions"]
          repo = load_config["versions"][version]["repository"]
          processors = load_config["processors"]
  
          for processor in processors:
              instance_type = COMMON_INSTANCE_TYPES[processor]
              for py_version in py_versions:
                  for region in ALGO_ACCOUNTS.keys():
                      uri = image_uris.retrieve(
                          "chainer",
                          region=region,
                          version=version,
                          py_version=py_version,
                          image_scope="training",
                          instance_type=instance_type,
                      )
                      expected = expected_uris.framework_uri(
                          repo=repo,
                          fw_version=version,
                          py_version=py_version,
                          processor=processor,
                          region=region,
                          account=ALGO_ACCOUNTS[region],
                      )
                      assert uri == expected
  
imports: from __future__ import absolute_import
  from packaging.version import Version
  from sagemaker import image_uris
  from tests.unit.sagemaker.image_uris import expected_uris
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_chainer_uris(load_config) without return types