class_docstr: Execute using Condor
  
  This plugin doesn't work with a plain stock-Condor installation, but
  requires a 'qsub' emulation script for Condor, called 'condor_qsub'.
  This script is shipped with the Condor package from NeuroDebian, or can be
  downloaded from its Git repository at
  
  http://anonscm.debian.org/gitweb/?p=pkg-exppsy/condor.git;a=blob_plain;f=debian/condor_qsub;hb=HEAD
  
  The plugin_args input to run can be used to control the Condor execution.
  Currently supported options are:
  
  - template : template to use for batch job submission. This can be an
               SGE-style script with the (limited) set of options supported
               by condor_qsub
  - qsub_args : arguments to be prepended to the job execution script in the
                qsub call
code: def _is_pending(self, taskid):
      cmd = CommandLine(
          "condor_q",
          resource_monitor=False,
          terminal_output="allatonce",
      )
      cmd.inputs.args = "%d" % taskid
      # check condor cluster
      oldlevel = iflogger.level
      iflogger.setLevel(logging.getLevelName("CRITICAL"))
      result = cmd.run(ignore_exception=True)
      iflogger.setLevel(oldlevel)
      if result.runtime.stdout.count("\n%d" % taskid):
          return True
      return False
  
file_path: nipype/nipype/pipeline/plugins/condor.py
imports: import os
  from time import sleep
  from ...interfaces.base import CommandLine
  from ...None import logging
  from .base import SGELikeBatchManagerBase, logger
label_desc: Use image node_id 2 for calling the CondorPlugin obj's underlying member method code with example usage: obj._is_pending(taskid) and returns: False, True