code: def test_retrieve_invalid_accelerator(config_for_framework):
      with pytest.raises(ValueError) as e:
          image_uris.retrieve(
              framework="useless-string",
              version="1.0.0",
              py_version="py3",
              instance_type="ml.c4.xlarge",
              accelerator_type="fake-accelerator",
              region="us-west-2",
          )
      assert (
          "Invalid SageMaker Elastic Inference accelerator type: fake-accelerator."
          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 5 for calling a global function with example usage: test_retrieve_invalid_accelerator(config_for_framework) without return types