def _assert_snapshot(example, url, example_type, diff):
    # Get setup datapoints

    screenshot_path, _, _ = get_example_pngs(example, diff)

    if example_type == 'notebook':
        wait = pytest.config.option.notebook_phantom_wait / 1000
        height = 2000
    else:
        wait = 1000
        height = 1000

    result = get_phantomjs_screenshot(url, screenshot_path, wait, height=height)

    status = result['status']
    errors = result['errors']
    messages = result['messages']
    resources = result['resources']

    if status != 'success':
        assert False, "PhantomJS did not succeed: %s | %s | %s" % (errors, messages, resources)
    else:
        if pytest.config.option.verbose:
            _print_phantomjs_output(result)
        assert True
dataset/ETHPy150Open bokeh/bokeh/tests/examples/test_examples.py/_assert_snapshot/operator `*` -> `/`