class_docstr: Make async prediction requests to an Amazon SageMaker endpoint.
class_docstr_tok: ["Make","async","prediction","requests","to","an","Amazon","SageMaker","endpoint","."]
docstr: Retrieve output based on the presense of failure_path.
docstr_tok: ["Retrieve","output","based","on","the","presense","of","failure_path","."]
code: def _wait_for_output(self, output_path, failure_path, waiter_config):
      """Retrieve output based on the presense of failure_path."""
      if failure_path is not None:
          return self._check_output_and_failure_paths(
              output_path, failure_path, waiter_config
          )
  
      return self._check_output_path(output_path, waiter_config)
  
imports: from __future__ import absolute_import
  import threading
  import time
  import uuid
  from botocore.exceptions import WaiterError
  from sagemaker import s3
  from sagemaker.exceptions import PollingTimeoutError, AsyncInferenceModelError
  from sagemaker.async_inference import WaiterConfig, AsyncInferenceResponse
  from sagemaker.s3 import parse_s3_url
  from sagemaker.session import Session
  from sagemaker.utils import name_from_base, sagemaker_timestamp, format_tags
label_desc: Use image node_id 7 for calling the AsyncPredictor obj's underlying member method code with example usage: obj._wait_for_output(output_path, failure_path, waiter_config) and returns: self, self