def is_process_running(process):
    """
    is_process_running(process)

    Checks to see if a process is running.
    """

    all_processes = os.popen("ps -Af").read()

    return True if all_processes in process else False
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/sys_tools.py/is_process_running/swapped operands of `in`