code: def test_use_training_model_artifact():
      specs1 = JumpStartModelSpecs(BASE_SPEC)
      assert specs1.use_training_model_artifact()
      specs1.gated_bucket = True
      assert not specs1.use_training_model_artifact()
      specs1.gated_bucket = False
      specs1.training_model_package_artifact_uris = {
          "region1": "blah",
          "region2": "blah2",
      }
      assert not specs1.use_training_model_artifact()
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/jumpstart/test_types.py
imports: from __future__ import absolute_import
  import copy
  from sagemaker.jumpstart.types import JumpStartECRSpecs, JumpStartHyperparameter, JumpStartInstanceTypeVariants, JumpStartModelSpecs, JumpStartModelHeader
  from tests.unit.sagemaker.jumpstart.constants import BASE_SPEC
label_desc: Use image node_id 2 for calling a global function with example usage: test_use_training_model_artifact() without return types