code: def test_uncommon_format_dlc_framework_version_uris(
      load_config_and_file_name,
  ):
      config, file_name = load_config_and_file_name
      framework = file_name.split(".json")[0]
      py_versions = ["py2", "py3"]
  
      # These versions are formatted differently than others for their framework
      if framework == "tensorflow":
          SCOPES = ["training"]
          VERSIONS = ["1.13.1"]
      elif framework == "mxnet":
          SCOPES = ["training", "inference"]
          VERSIONS = ["1.4.1"]
  
      for scope in SCOPES:
          for py_version in py_versions:
              for version in VERSIONS:
                  ACCOUNTS = config[scope]["versions"][version][
                      py_version
                  ]["registries"]
                  processors = config[scope].get(
                      "processors", ["cpu", "gpu"]
                  )
                  repo = config[scope]["versions"][version][py_version][
                      "repository"
                  ]
                  for processor in processors:
                      instance_type = COMMON_INSTANCE_TYPES[processor]
                      for region in ACCOUNTS.keys():
                          uri = image_uris.retrieve(
                              framework,
                              region=region,
                              version=version,
                              py_version=py_version,
                              image_scope=scope,
                              instance_type=instance_type,
                          )
                          expected = expected_uris.framework_uri(
                              repo=repo,
                              fw_version=version,
                              py_version=py_version,
                              processor=processor,
                              region=region,
                              account=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 3 for calling a global function with example usage: test_uncommon_format_dlc_framework_version_uris(load_config_and_file_name) without return types