class_docstr: Response from Async Inference endpoint
  
  This response object provides a method to check for an async inference result in the
  Amazon S3 output path specified. If result object exists in that path, get and return
  the result
class_docstr_tok: ["Response","from","Async","Inference","endpoint","This","response","object","provides","a","method","to","check","for","an","async","inference","result","in","the","Amazon","S3","output","path","specified",".","If","result","object","exists","in","that","path",",","get","and","return","the","result"]
docstr: Retrieve output based on the presense of failure_path
docstr_tok: ["Retrieve","output","based","on","the","presense","of","failure_path"]
code: def _get_result_from_s3(self, output_path, failure_path):
      """Retrieve output based on the presense of failure_path"""
      if failure_path is not None:
          return self._get_result_from_s3_output_failure_paths(
              output_path, failure_path
          )
  
      return self._get_result_from_s3_output_path(output_path)
  
file_path: sagemaker-python-sdk/src/sagemaker/async_inference/async_inference_response.py
imports: from __future__ import print_function, absolute_import
  from botocore.exceptions import ClientError
  from sagemaker.s3 import parse_s3_url
  from sagemaker.async_inference import WaiterConfig
  from sagemaker.exceptions import ObjectNotExistedError, UnexpectedClientError, AsyncInferenceModelError
label_desc: Use image node_id 3 for calling the AsyncInferenceResponse obj's underlying member method code with example usage: obj._get_result_from_s3(output_path, failure_path) and returns: self, self