code: def test_deploy_right_size_explainer_config_override(
      sagemaker_session, default_right_sized_model
  ):
      default_right_sized_model.name = MODEL_NAME
      mock_clarify_explainer_config = MagicMock()
      mock_clarify_explainer_config_dict = {
          "EnableExplanations": "`false`",
      }
      mock_clarify_explainer_config._to_request_dict.return_value = (
          mock_clarify_explainer_config_dict
      )
      explainer_config = ExplainerConfig(
          clarify_explainer_config=mock_clarify_explainer_config
      )
      explainer_config_dict = {
          "ClarifyExplainerConfig": mock_clarify_explainer_config_dict
      }
  
      default_right_sized_model.deploy(
          instance_type="ml.c5.2xlarge",
          initial_instance_count=1,
          explainer_config=explainer_config,
      )
  
      sagemaker_session.create_model.assert_called_with(
          MODEL_NAME,
          IR_ROLE_ARN,
          IR_MODEL_PACKAGE_CONTAINER_DEF,
          vpc_config=None,
          enable_network_isolation=False,
          tags=None,
      )
  
      sagemaker_session.endpoint_from_production_variants.assert_called_with(
          name=MODEL_NAME,
          production_variants=[ANY],
          tags=None,
          kms_key=None,
          wait=True,
          data_capture_config_dict=None,
          async_inference_config_dict=None,
          explainer_config_dict=explainer_config_dict,
          live_logging=False,
      )
  
imports: from __future__ import absolute_import
  from unittest.mock import patch, MagicMock, ANY
  from sagemaker.model import Model, ModelPackage
  from sagemaker.parameter import CategoricalParameter
  from sagemaker.inference_recommender.inference_recommender_mixin import Phase, ModelLatencyThreshold
  from sagemaker.async_inference import AsyncInferenceConfig
  from sagemaker.serverless import ServerlessInferenceConfig
  from sagemaker.explainer import ExplainerConfig
  import pytest
label_desc: Use image node_id 20 for calling a global function with example usage: test_deploy_right_size_explainer_config_override(sagemaker_session, default_right_sized_model) without return types