class_docstr: Stop when the given event is set.
code: def __call__(self, retry_state):
      return self.event.is_set()
  
imports: import abc
  import six
label_desc: Use image node_id 2 for calling the stop_when_event_set obj's underlying member method code with example usage: obj.__call__(retry_state) and returns: self