class_docstr: Execute workflow with SGE/OGE/PBS like batch system
class_docstr_tok: ["Execute","workflow","with","SGE\/OGE\/PBS","like","batch","system"]
docstr: submit job and return taskid
docstr_tok: ["submit","job","and","return","taskid"]
code: def _submit_job(self, node, updatehash=False):
      """submit job and return taskid"""
      pyscript = create_pyscript(node, updatehash=updatehash)
      batch_dir, name = os.path.split(pyscript)
      name = ".".join(name.split(".")[:-1])
      batchscript = "\n".join(
          (self._template.rstrip("\n"), f"{sys.executable} {pyscript}")
      )
      batchscriptfile = os.path.join(
          batch_dir, "batchscript_%s.sh" % name
      )
      with open(batchscriptfile, "w") as fp:
          fp.writelines(batchscript)
      return self._submit_batchtask(batchscriptfile, node)
  
imports: import sys
  from copy import deepcopy
  from glob import glob
  import os
  import shutil
  from time import sleep, time
  from traceback import format_exception
  import numpy
  from ...None import logging
  from ...utils.misc import str2bool
  from ..engine.utils import topological_sort, load_resultfile
  from ..engine import MapNode
  from .tools import report_crash, report_nodes_not_run, create_pyscript
label_desc: Use image node_id 5 for calling the SGELikeBatchManagerBase obj's underlying member method code with example usage: obj._submit_job(node, updatehash) and returns: self