code: def test_glyph_method_errors_on_sequence_literals_with_source(
      self,
  ) -> None:
      p = bpf.figure()
      source = ColumnDataSource({"x": [1, 2, 3], "y": [2, 3, 4]})
  
      with pytest.raises(
          RuntimeError,
          match=r"Expected y to reference fields in the supplied data source.",
      ):
          p.scatter(x="x", y=[1, 2, 3], source=source)
      with pytest.raises(
          RuntimeError,
          match=r"Expected y and line_color to reference fields in the supplied data source.",
      ):
          p.scatter(
              x="x",
              y=[1, 2, 3],
              line_color=["red", "green", "blue"],
              source=source,
          )
      with pytest.raises(RuntimeError) as e:
          p.scatter(
              x="x",
              y=[1, 2, 3],
              color=["red", "green", "blue"],
              source=source,
          )
      m = re.search(
          r"Expected y, (.+), (.+) and (.+) to reference fields in the supplied data source.",
          str(e.value),
      )
      assert m is not None
      assert set(m.groups()) == {
          "fill_color",
          "hatch_color",
          "line_color",
      }
  
imports: from __future__ import annotations
  import pytest
  import re
  import pandas
  from bokeh.core.enums import MarkerType
  from bokeh.core.properties import value
  from bokeh.models import BoxZoomTool, Circle, ColumnDataSource, LassoSelectTool, Legend, LinearAxis, LogScale, PanTool, ResetTool, Scatter, Title
  from bokeh.util.warnings import BokehDeprecationWarning
  from bokeh.plotting import _figure
label_desc: Use image node_id 19 for calling the Test_figure obj's underlying member method code with example usage: obj.test_glyph_method_errors_on_sequence_literals_with_source() without return types