code: def mock_s3_client():
      """
      This function returns a mocked S3 client object that has a get_object method with a side_effect
      that returns a dictionary with a Body key that points to a mocked response body object.
      """
      s3_client = Mock(name="s3-client")
      response_body = Mock("body")
      response_body.read = Mock("read", return_value=RETURN_VALUE)
      response_body.close = Mock("close", return_value=None)
      s3_client.get_object = Mock(
          name="get_object",
          side_effect=[
              {"Body": response_body},
          ],
      )
      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 3 for calling a global function with example usage: mock_s3_client() and returns: s3_client