code: def test_retrieve_unsupported_python_version(config_for_framework):
      with pytest.raises(ValueError) as e:
          image_uris.retrieve(
              framework="useless-string",
              version="1.0.0",
              py_version="py2",
              instance_type="ml.c4.xlarge",
              region="us-west-2",
              image_scope="training",
          )
  
      assert "Unsupported Python version: py2." in str(e.value)
      assert "Supported Python version(s): py3, py37." in str(e.value)
  
      with pytest.raises(ValueError) as e:
          image_uris.retrieve(
              framework="useless-string",
              version="1.0.0",
              instance_type="ml.c4.xlarge",
              region="us-west-2",
              image_scope="training",
          )
  
      assert "Unsupported Python version: None." in str(e.value)
      assert "Supported Python version(s): py3, py37." in str(e.value)
  
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 14 for calling a global function with example usage: test_retrieve_unsupported_python_version(config_for_framework) without return types