code: def test_jumpstart_artifact_bucket_override(
      patched_get_model_specs,
      patched_verify_model_region_and_return_specs,
  ):
      patched_verify_model_region_and_return_specs.side_effect = (
          verify_model_region_and_return_specs
      )
      patched_get_model_specs.side_effect = get_spec_from_base_spec
  
      uri = script_uris.retrieve(
          script_scope="training",
          model_id="pytorch-ic-mobilenet-v2",
          model_version="*",
      )
      assert (
          uri
          == "s3://some-cool-bucket-name/source-directory-tarballs/pytorch/transfer_learning/ic/v1.0.0/sourcedir.tar.gz"
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/script_uris/jumpstart/test_common.py
imports: from __future__ import absolute_import
  from unittest.mock import Mock
  import pytest
  import boto3
  from mock.mock import patch
  from sagemaker import script_uris
  from sagemaker.jumpstart.utils import verify_model_region_and_return_specs
  from tests.unit.sagemaker.jumpstart.utils import get_spec_from_base_spec
  from sagemaker.jumpstart import constants
label_desc: Use image node_id 2 for calling a global function with example usage: test_jumpstart_artifact_bucket_override(patched_get_model_specs, patched_verify_model_region_and_return_specs) without return types