code: def test_neo_and_inferentia_frameworks(load_config_and_file_name):
      config, file_name = load_config_and_file_name
      framework = file_name.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"]
          for processor in processors:
              if file_name in NEO_FRAMEWORKS:
                  instance_type = NEO_FRAMEWORK_INSTANCE_TYPES[
                      processor
                  ]
              else:
                  instance_type = INFERNTIA_FRAMEWORK_INSTANCE_TYPES[
                      processor
                  ]
  
              for py_version in py_versions:
                  for region in ACCOUNTS.keys():
                      uri = image_uris.retrieve(
                          framework,
                          region,
                          instance_type=instance_type,
                          version=version,
                      )
                      expected = expected_uris.framework_uri(
                          repo,
                          fw_version=version,
                          py_version=py_version,
                          account=ACCOUNTS[region],
                          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 2 for calling a global function with example usage: test_neo_and_inferentia_frameworks(load_config_and_file_name) without return types