code: def test_deploy_right_size_async_override(
      sagemaker_session, default_right_sized_model
  ):
      default_right_sized_model.name = MODEL_NAME
      async_inference_config = AsyncInferenceConfig(
          output_path="s3://some-path",
          failure_path="s3://some-failure-path",
      )
      default_right_sized_model.deploy(
          instance_type="ml.c5.2xlarge",
          initial_instance_count=1,
          async_inference_config=async_inference_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={
              "OutputConfig": {
                  "S3OutputPath": "s3://some-path",
                  "S3FailurePath": "s3://some-failure-path",
              }
          },
          explainer_config_dict=None,
          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 19 for calling a global function with example usage: test_deploy_right_size_async_override(sagemaker_session, default_right_sized_model) without return types