code: def empty_s3_client_to_verify_exceptions_for_null_failure_path():
      """
      Returns a mocked S3 client with the `get_object` method overridden
      to raise different exceptions based on the input.
  
      Exceptions raised:
      - `ObjectNotExistedError`
      - `UnexpectedClientError`
  
      """
      s3_client = Mock(name="s3-client")
  
      object_error = ObjectNotExistedError(
          "Inference could still be running", DEFAULT_OUTPUT_PATH
      )
  
      unexpected_error = UnexpectedClientError("some error message")
  
      s3_client.get_object = Mock(
          name="get_object",
          side_effect=[
              object_error,
              unexpected_error,
          ],
      )
      return s3_client
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/async_inference/test_async_inference_response.py
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock
  from botocore.exceptions import ClientError
  from sagemaker.predictor import Predictor
  from sagemaker.predictor_async import AsyncPredictor
  from sagemaker.async_inference import AsyncInferenceResponse
  from sagemaker.exceptions import AsyncInferenceModelError, ObjectNotExistedError, UnexpectedClientError
label_desc: Use image node_id 2 for calling a global function with example usage: empty_s3_client_to_verify_exceptions_for_null_failure_path() and returns: s3_client