class_docstr: Execute using SLURM
  
  The plugin_args input to run can be used to control the SGE execution.
  Currently supported options are:
  
  - template : template to use for batch job submission
  - qsub_args : arguments to be prepended to the job execution script in the
                qsub call
code: def __init__(self, **kwargs):
      self._sbatch_args = ""
      if "plugin_args" in kwargs and kwargs["plugin_args"]:
          if "retry_timeout" in kwargs["plugin_args"]:
              self._retry_timeout = kwargs["plugin_args"][
                  "retry_timeout"
              ]
          if "max_tries" in kwargs["plugin_args"]:
              self._max_tries = kwargs["plugin_args"]["max_tries"]
          if "template" in kwargs["plugin_args"]:
              self._template = kwargs["plugin_args"]["template"]
              if os.path.isfile(self._template):
                  self._template = open(self._template).read()
          if "sbatch_args" in kwargs["plugin_args"]:
              self._sbatch_args = kwargs["plugin_args"]["sbatch_args"]
          if "dont_resubmit_completed_jobs" in kwargs["plugin_args"]:
              self._dont_resubmit_completed_jobs = kwargs[
                  "plugin_args"
              ]["dont_resubmit_completed_jobs"]
          else:
              self._dont_resubmit_completed_jobs = False
      super().__init__(**kwargs)
  
file_path: nipype/nipype/pipeline/plugins/slurmgraph.py
imports: import os
  import sys
  from ...interfaces.base import CommandLine
  from .base import GraphPluginBase, logger
label_desc: Use image node_id 1 to create a new SLURMGraphPlugin object from inherited base classes: GraphPluginBase with example: obj = SLURMGraphPlugin()