code: def test_convert_dataframes_to_sources(self) -> None:
      node_source = pd.DataFrame(data=dict(foo=[]))
      edge_source = pd.DataFrame(data=dict(start=[], end=[], bar=[]))
  
      kw = bpg.get_graph_kwargs(node_source, edge_source)
  
      # 'index' column is added from pandas df
      assert set(kw["node_renderer"].data_source.data.keys()) == {
          "index",
          "foo",
      }
      assert set(kw["edge_renderer"].data_source.data.keys()) == {
          "index",
          "start",
          "end",
          "bar",
      }
  
file_path: bokeh/tests/unit/bokeh/plotting/test__graph.py
imports: from __future__ import annotations
  import pytest
  import pandas
  from bokeh.core.properties import field
  from bokeh.models import ColumnDataSource, MultiLine, Scatter
  import bokeh.plotting._graph
label_desc: Use image node_id 1 for calling the Test_get_graph_kwargs obj's underlying member method code with example usage: obj.test_convert_dataframes_to_sources() without return types