code: def test_raises_when_spec_in_kwargs(self) -> None:
      with pytest.raises(ValueError) as e:
          bps.single_stack(["a", "b"], "foo", foo=10)
  
      assert str(e.value).endswith(
          "Stack property 'foo' cannot appear in keyword args"
      )
  
imports: from __future__ import annotations
  import pytest
  import bokeh.plotting._stack
label_desc: Use image node_id 1 for calling the Test_single_stack obj's underlying member method code with example usage: obj.test_raises_when_spec_in_kwargs() without return types