class_docstr: An Attempt encapsulates a call to a target function that may end as a
  normal return value from the function or an Exception depending on what
  occurred during the execution.
docstr: Return the return value of this Attempt instance or raise an Exception.
  If wrap_exception is true, this Attempt is wrapped inside of a
  RetryError before being raised.
docstr_tok: ["Return","the","return","value","of","this","Attempt","instance","or","raise","an","Exception",".","If","wrap_exception","is","true",",","this","Attempt","is","wrapped","inside","of","a","RetryError","before","being","raised","."]
code: def get(self, wrap_exception=False):
      """
      Return the return value of this Attempt instance or raise an Exception.
      If wrap_exception is true, this Attempt is wrapped inside of a
      RetryError before being raised.
      """
      if self.has_exception:
          if wrap_exception:
              raise RetryError(self)
          else:
              six.reraise(self.value[0], self.value[1], self.value[2])
      else:
          return self.value
  
imports: import random
  import six
  import sys
  import time
  import traceback
label_desc: Use image node_id 2 for calling the Attempt obj's underlying member method code with example usage: obj.get(wrap_exception) and returns: self