code: def test_pop_legend_kwarg_error(keys) -> None:
      kws = dict(zip(keys, range(len(keys))))
      with pytest.raises(ValueError):
          bpl.pop_legend_kwarg(kws)
  
imports: from __future__ import annotations
  import pytest
  import itertools
  from bokeh.core.properties import field, value
  from bokeh.models import ColumnDataSource, GlyphRenderer, Legend, LegendItem
  from bokeh.plotting import figure
  import bokeh.plotting._legends
label_desc: Use image node_id 3 for calling a global function with example usage: test_pop_legend_kwarg_error(keys) without return types