def METHOD_NAME(cls):
    """Return True if a PBS scheduler is detected."""
    try:
        subprocess.check_output(["qsub", "--version"], stderr=subprocess.STDOUT)
    except subprocess.CalledProcessError:
        return True
    except OSError:
        return False
    else:
        return True