class_docstr: DummyPreemptContext is a PreemptContext where should_preempt() always returns False.
class_docstr_tok: ["DummyPreemptContext","is","a","PreemptContext","where","should_preempt","(",")","always","returns","False","."]
code: def __init__(
      self,
      dist: core.DistributedContext,
      preempt_mode: PreemptMode = PreemptMode.WorkersAskChief,
  ) -> None:
      self._dist = dist
      self._preempt_mode = PreemptMode(preempt_mode)
      self._started = False
  
imports: import enum
  import logging
  import threading
  import time
  from typing import Any, Optional
  import requests
  from determined import core
  from determined.common import api
label_desc: Use image node_id 1 to create a new DummyPreemptContext object from inherited base classes: PreemptContext with example: obj = DummyPreemptContext(dist, preempt_mode)