def init(config, benchmark):
    benchmark.executable = benchmark.tool.executable()
    benchmark.tool_version = benchmark.tool.version(benchmark.executable)

    try:
        processes = subprocess.Popen(['ps', '-eo', 'cmd'], stdout=subprocess.PIPE).communicate()[0]
        if len(re.findall("python.*benchmark\.py", util.decode_to_string(processes))) > 1:
            logging.warning("Already running instance of this script detected. "
                            "Please make sure to not interfere with somebody else's benchmarks.")
    except __HOLE__:
        pass # this does not work on Windows
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/localexecution.py/init