code: def evaluate_model_workflow_with_kwargs(
      self,
      mock_model_deploy: mock.Mock,
      mock_model_init: mock.Mock,
      mock_get_model_specs: mock.Mock,
      mock_session: mock.Mock,
      mock_is_valid_model_id: mock.Mock,
      mock_retrieve_environment_variables: mock.Mock,
      init_kwargs: Optional[dict] = None,
      deploy_kwargs: Optional[dict] = None,
  ):
      mock_retrieve_environment_variables.side_effect = (
          _retrieve_default_environment_variables
      )
  
      mock_model_deploy.return_value = default_predictor
  
      mock_is_valid_model_id.return_value = True
  
      mock_session.return_value = sagemaker_session
  
      if init_kwargs is None:
          init_kwargs = {}
  
      if deploy_kwargs is None:
          deploy_kwargs = {}
  
      model_id, _ = "js-model-class-model-prepacked", "*"
  
      mock_get_model_specs.side_effect = get_special_model_spec
  
      model = JumpStartModel(
          model_id=model_id,
          **init_kwargs,
      )
  
      expected_init_kwargs = overwrite_dictionary(
          {
              "image_uri": "763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-inference:"
              "1.10.2-transformers4.17.0-gpu-py38-cu113-ubuntu20.04",
              "model_data": "s3://jumpstart-cache-prod-us-west-2/huggingface-infer/prepack/"
              "v1.0.0/infer-prepack-huggingface-txt2img-conflictx-complex-lineart.tar.gz",
              "env": {
                  "SAGEMAKER_PROGRAM": "inference.py",
                  "ENDPOINT_SERVER_TIMEOUT": "3600",
                  "MODEL_CACHE_ROOT": "/opt/ml/model",
                  "SAGEMAKER_ENV": "1",
                  "SAGEMAKER_MODEL_SERVER_WORKERS": "1",
              },
              "predictor_cls": Predictor,
              "role": execution_role,
              "sagemaker_session": sagemaker_session,
              "enable_network_isolation": False,
          },
          init_kwargs,
      )
  
      mock_model_init.assert_called_once_with(**expected_init_kwargs)
  
      model.deploy(**deploy_kwargs)
  
      mock_retrieve_environment_variables.assert_called_once()
  
      expected_deploy_kwargs = overwrite_dictionary(
          {
              "initial_instance_count": 1,
              "instance_type": "ml.p3.2xlarge",
              "tags": [
                  {
                      "Key": JumpStartTag.MODEL_ID,
                      "Value": "js-model-class-model-prepacked",
                  },
                  {"Key": JumpStartTag.MODEL_VERSION, "Value": "1.1.0"},
              ],
          },
          deploy_kwargs,
      )
  
      mock_model_deploy.assert_called_once_with(
          **expected_deploy_kwargs
      )
  
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 10 for calling the ModelTest obj's underlying member method code with example usage: obj.evaluate_model_workflow_with_kwargs(mock_model_deploy, mock_model_init, mock_get_model_specs, mock_session, mock_is_valid_model_id, mock_retrieve_environment_variables, init_kwargs, deploy_kwargs) without return types