class_docstr: Execute using LSF Cluster Submission
  
  The plugin_args input to run can be used to control the LSF execution.
  Currently supported options are:
  
  - template : template to use for batch job submission
  - bsub_args : arguments to be prepended to the job execution script in the
                bsub call
code: def __init__(self, **kwargs):
      template = """
  #$ -S /bin/sh
          """
      self._retry_timeout = 2
      self._max_tries = 2
      self._bsub_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 "bsub_args" in kwargs["plugin_args"]:
              self._bsub_args = kwargs["plugin_args"]["bsub_args"]
      super().__init__(template, **kwargs)
  
file_path: nipype/nipype/pipeline/plugins/lsf.py
imports: import os
  import re
  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 LSFPlugin object from inherited base classes: SGELikeBatchManagerBase with example: obj = LSFPlugin()