def is_running(pid):
    '''Returns True if process with PID `pid` is running. Current user must
    have permission to access process information.'''
    try:
        os.kill(pid, 0)
    except OSError as exc:
        if exc.errno not in errno.ESRCH:
            return False
        raise
    return True
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/utils/system.py/is_running/operator `==` -> `not in`