code: def test_retrieve_aliased_version(config_for_framework):
      version = "1.0.0-build123"
  
      config = copy.deepcopy(BASE_CONFIG)
      config["version_aliases"] = {version: "1.0.0"}
      config_for_framework.return_value = config
  
      uri = image_uris.retrieve(
          framework="useless-string",
          version=version,
          py_version="py3",
          instance_type="ml.c4.xlarge",
          region="us-west-2",
          image_scope="training",
      )
      assert (
          "123412341234.dkr.ecr.us-west-2.amazonaws.com/dummy:{}-cpu-py3".format(
              version
          )
          == uri
      )
  
      del config["versions"]["1.1.0"]
      uri = image_uris.retrieve(
          framework="useless-string",
          version=version,
          py_version="py3",
          instance_type="ml.c4.xlarge",
          region="us-west-2",
          image_scope="training",
      )
      assert (
          "123412341234.dkr.ecr.us-west-2.amazonaws.com/dummy:{}-cpu-py3".format(
              version
          )
          == uri
      )
  
imports: from __future__ import absolute_import
  import copy
  import logging
  import pytest
  from mock import patch
  from sagemaker import image_uris
  from sagemaker.workflow.functions import Join
  from sagemaker.workflow.parameters import ParameterString
label_desc: Use image node_id 6 for calling a global function with example usage: test_retrieve_aliased_version(config_for_framework) without return types