class_docstr: Submits jobs to SLURM, can check on their status, and kill jobs.
  
  Uses ``drmaa`` Python library.
  
  Args:
      submit_options (str): command line options such as queue ``-q``,
           all written in one string.
      environment (str): the path to a file that contains environment
          variables; will be sourced before job is run.
      output_dir (str): path to directory in which ``stdout`` and ``stderr``
          will be written to. If not specified this will use the same as
          defined for the study.
class_docstr_tok: ["Submits","jobs","to","SLURM",",","can","check","on","their","status",",","and","kill","jobs",".","Uses","``","drmaa","``","Python","library",".","Args",":","submit_options","(","str",")",":","command","line","options","such","as","queue","``","-q","``",",","all","written","in","one","string",".","environment","(","str",")",":","the","path","to","a","file","that","contains","environment","variables",";","will","be","sourced","before","job","is","run",".","output_dir","(","str",")",":","path","to","directory","in","which","``","stdout","``","and","``","stderr","``","will","be","written","to",".","If","not","specified","this","will","use","the","same","as","defined","for","the","study","."]
docstr: Args:
      job_ids (str): SLURM process ID.
  
  Returns:
      sherpa.schedulers._JobStatus: The job status.
docstr_tok: ["Args",":","job_ids","(","str",")",":","SLURM","process","ID",".","Returns",":","sherpa.schedulers._JobStatus",":","The","job","status","."]
code: def get_status(self, job_id):
      """
      Args:
          job_ids (str): SLURM process ID.
  
      Returns:
          sherpa.schedulers._JobStatus: The job status.
      """
      with self.drmaa.Session() as s:
          try:
              status = s.jobStatus(str(job_id))
          except self.drmaa.errors.InvalidJobException:
              return _JobStatus.finished
      s = self.decode_status.get(status)
      if s == _JobStatus.finished and job_id in self.killed_jobs:
          s = _JobStatus.killed
      return s
  
imports: import subprocess
  import re
  import sys
  import os
  import logging
label_desc: Use image node_id 4 for calling the SLURMScheduler obj's underlying member method code with example usage: obj.get_status(job_id) and returns: s, _JobStatus