def process_image_diff(diff_path, before_path, after_path):

    cmd = ["perceptualdiff", "-output", diff_path, before_path, after_path]
    try:
        proc = subprocess.Popen(cmd)
        code = proc.wait()
    except __HOLE__:
        fail("Failed to run: %s" % " ".join(cmd))
        sys.exit(1)

    return code
dataset/ETHPy150Open bokeh/bokeh/tests/plugins/image_diff.py/process_image_diff