code: def test_from_networkx_method_with_kwargs(nx) -> None:
      G = nx.Graph()
      G.add_nodes_from([0, 1, 2, 3])
      G.add_edges_from([[0, 1], [0, 2], [2, 3]])
  
      renderer = bpg.from_networkx(G, nx.circular_layout, scale=2)
  
      gl = renderer.layout_provider.graph_layout
      assert set(gl.keys()) == {0, 1, 2, 3}
      assert_allclose(gl[0], np.array([2.0, 0.0]), atol=1e-7)
  
file_path: bokeh/tests/unit/bokeh/plotting/test_graph.py
imports: from __future__ import annotations
  import pytest
  import numpy
  from numpy.testing import assert_allclose
  import bokeh.plotting.graph
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_networkx_method_with_kwargs(nx) without return types