class_docstr: ShouldExit breaks out of the top-level workload sequencer loop from inside function calls.
class_docstr_tok: ["ShouldExit","breaks","out","of","the","top-level","workload","sequencer","loop","from","inside","function","calls","."]
code: def __init__(self, skip_exit_checkpoint: bool = False):
      self.skip_exit_checkpoint = skip_exit_checkpoint
  
imports: import logging
  import sys
  from typing import Any, Generator, Optional, Tuple
  import determined
  from determined import core, util, workload
  from determined.common import check
label_desc: Use image node_id 1 to create a new ShouldExit object from inherited base classes: Exception with example: obj = ShouldExit(skip_exit_checkpoint)