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.
code: def __repr__(self):
      if self.has_exception:
          return "Attempts: {0}, Error:\n{1}".format(
              self.attempt_number,
              "".join(traceback.format_tb(self.value[2])),
          )
      else:
          return "Attempts: {0}, Value: {1}".format(
              self.attempt_number, self.value
          )
  
imports: import random
  import six
  import sys
  import time
  import traceback
label_desc: Use image node_id 3 for calling the Attempt obj's underlying member method code with example usage: obj.__repr__() and returns: str, str