class_docstr: A :class:`Job` subclass to schedule tasks on Slurm.
  
  Runs an 'sbatch' command in the shell with the script.
  
  Attributes:
      output_file: (optional) :obj:`str`. Path to the file where the executed
          script will dump the result file. If none is provided, a temporary
          file will be created.
code: def _query_job_status(self, slurm_id: int) -> SlurmJobState:
      response = run_command(self._SLURM_CMD_INFO + [str(slurm_id)])
      job_state = re.search(self._SLURM_JOB_STATE_REGEX, response)
      if job_state is not None:
          job_state = job_state.group(1).lower()
          return SlurmJobState.from_string(job_state)
  
imports: import enum
  import importlib
  import os
  import pickle
  import re
  import subprocess
  import sys
  import tempfile
  import time
  from dataclasses import dataclass, field
  from functools import partial
  from typing import Any, Callable, Dict, List, Tuple, Union
label_desc: Use image node_id 5 for calling the SlurmJob obj's underlying member method code with example usage: obj._query_job_status(slurm_id) and returns: SlurmJobState