code: def test_jumpstart_model_package_arn_override(
      self,
      mock_get_model_specs: mock.Mock,
      mock_is_valid_model_id: mock.Mock,
  ):
      mock_is_valid_model_id.return_value = True
  
      # arbitrary model without model packarn arn
      model_id, _ = "js-trainable-model", "*"
  
      mock_get_model_specs.side_effect = get_special_model_spec
  
      mock_session = MagicMock(sagemaker_config={})
  
      model_package_arn = (
          "arn:aws:sagemaker:us-west-2:867530986753:model-package/"
          "llama2-ynnej-f-e46eb8a833643ed58aaccd81498972c3"
      )
      model = JumpStartModel(
          model_id=model_id,
          model_package_arn=model_package_arn,
          sagemaker_session=mock_session,
      )
  
      model.deploy()
  
      self.assertEqual(
          mock_session.create_model.call_args[0][2],
          {
              "ModelPackageName": model_package_arn,
              "Environment": {
                  "ENDPOINT_SERVER_TIMEOUT": "3600",
                  "MODEL_CACHE_ROOT": "/opt/ml/model",
                  "SAGEMAKER_ENV": "1",
                  "SAGEMAKER_MODEL_SERVER_WORKERS": "1",
                  "SAGEMAKER_PROGRAM": "inference.py",
              },
          },
      )
  
imports: from __future__ import absolute_import
  from inspect import signature
  from typing import Optional, Set
  from unittest import mock
  import unittest
  from mock import MagicMock
  import pytest
  from sagemaker.async_inference.async_inference_config import AsyncInferenceConfig
  from sagemaker.jumpstart.artifacts.environment_variables import _retrieve_default_environment_variables
  from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION
  from sagemaker.jumpstart.enums import JumpStartScriptScope, JumpStartTag
  from sagemaker.jumpstart.model import JumpStartModel
  from sagemaker.model import Model
  from sagemaker.predictor import Predictor
  from sagemaker.session_settings import SessionSettings
  from sagemaker.enums import EndpointType
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
  from tests.unit.sagemaker.jumpstart.utils import get_special_model_spec, overwrite_dictionary, get_special_model_spec_for_inference_component_based_endpoint
label_desc: Use image node_id 20 for calling the ModelTest obj's underlying member method code with example usage: obj.test_jumpstart_model_package_arn_override(mock_get_model_specs, mock_is_valid_model_id) without return types