code: def should_reject(self, attempt):
      reject = False
      if attempt.has_exception:
          reject |= self._retry_on_exception(attempt.value[1])
      else:
          reject |= self._retry_on_result(attempt.value)
  
      return reject
  
imports: import random
  import six
  import sys
  import time
  import traceback
label_desc: Use image node_id 11 for calling the Retrying obj's underlying member method code with example usage: obj.should_reject(attempt) and returns: reject