class_docstr: Execute using PBS/Torque
  
  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
  - max_jobname_len: maximum length of the job name.  Default 15.
code: def __init__(self, **kwargs):
      template = """
  #PBS -V
          """
      self._retry_timeout = 2
      self._max_tries = 2
      self._max_jobname_length = 15
      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 "max_jobname_len" in kwargs["plugin_args"]:
              self._max_jobname_len = kwargs["plugin_args"][
                  "max_jobname_len"
              ]
      super().__init__(template, **kwargs)
  
file_path: nipype/nipype/pipeline/plugins/pbs.py
imports: import os
  from time import sleep
  from ...None import logging
  from ...interfaces.base import CommandLine
  from .base import SGELikeBatchManagerBase, logger
label_desc: Use image node_id 1 to create a new PBSPlugin object from inherited base classes: SGELikeBatchManagerBase with example: obj = PBSPlugin()