class_docstr: Execute using SGE
  
  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._qsub_args = ""
      self._dont_resubmit_completed_jobs = False
      if "plugin_args" in kwargs and kwargs["plugin_args"]:
          plugin_args = kwargs["plugin_args"]
          if "template" in plugin_args:
              self._template = plugin_args["template"]
              if os.path.isfile(self._template):
                  self._template = open(self._template).read()
          if "qsub_args" in plugin_args:
              self._qsub_args = plugin_args["qsub_args"]
          if "dont_resubmit_completed_jobs" in plugin_args:
              self._dont_resubmit_completed_jobs = plugin_args[
                  "dont_resubmit_completed_jobs"
              ]
      super().__init__(**kwargs)
  
file_path: nipype/nipype/pipeline/plugins/sgegraph.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 SGEGraphPlugin object from inherited base classes: GraphPluginBase with example: obj = SGEGraphPlugin()