code: def test_jumpstart_pytorch_script_uri(patched_get_model_specs):
      patched_get_model_specs.side_effect = get_prototype_model_spec
  
      # inference
      uri = script_uris.retrieve(
          region="us-west-2",
          script_scope="inference",
          model_id="pytorch-eqa-bert-base-cased",
          model_version="*",
      )
      assert (
          uri
          == "s3://jumpstart-cache-prod-us-west-2/source-directory-tarballs/pytorch/"
          "inference/eqa/v1.0.0/sourcedir.tar.gz"
      )
  
      # training
      uri = script_uris.retrieve(
          region="us-west-2",
          script_scope="training",
          model_id="pytorch-eqa-bert-base-cased",
          model_version="*",
      )
      assert (
          uri
          == "s3://jumpstart-cache-prod-us-west-2/source-directory-tarballs/pytorch/"
          "transfer_learning/eqa/v1.0.0/sourcedir.tar.gz"
      )
  
imports: from __future__ import absolute_import
  from mock.mock import patch
  from sagemaker import script_uris
  from tests.unit.sagemaker.jumpstart.utils import get_prototype_model_spec
label_desc: Use image node_id 1 for calling a global function with example usage: test_jumpstart_pytorch_script_uri(patched_get_model_specs) without return types