class_docstr: Mapper that leverages standard (i.e. serial) python maps.
      
class_docstr_tok: ["Mapper","that","leverages","standard","(","i.e",".","serial",")","python","maps","."]
code: def _is_alive(self, negate=False, run=True):
      RUN, CLOSE, TERMINATE = 0, 1, 2
      pool = lambda: None
      pool._state = RUN if negate else CLOSE
      if negate and run:  # throw error if alive (exiting=True)
          assert pool._state != RUN
      elif negate:  # throw error if alive (exiting=True)
          assert pool._state in (CLOSE, TERMINATE)
      else:  # throw error if not alive (exiting=False)
          raise ValueError("Pool not running")
  
file_path: mystic/mystic/pools.py
imports: from mystic.abstract_launcher import AbstractWorkerPool
  from builtins import map
label_desc: Use image node_id 5 for calling the SerialPool obj's underlying member method code with example usage: obj._is_alive(negate, run) without return types