code: def test_from_networkx_fixed_layout(nx) -> None:
      G = nx.Graph()
      G.add_nodes_from([0, 1, 2])
      G.add_edges_from([[0, 1], [0, 2]])
  
      fixed_layout = {0: [0, 1], 1: [-1, 0], 2: [1, 0]}
  
      renderer = bpg.from_networkx(G, fixed_layout)
      assert renderer.node_renderer.data_source.data["index"] == [
          0,
          1,
          2,
      ]
      assert renderer.edge_renderer.data_source.data["start"] == [0, 0]
      assert renderer.edge_renderer.data_source.data["end"] == [1, 2]
  
      gl = renderer.layout_provider.graph_layout
      assert set(gl.keys()) == {0, 1, 2}
      assert renderer.layout_provider.graph_layout[0] == fixed_layout[0]
      assert renderer.layout_provider.graph_layout[1] == fixed_layout[1]
      assert renderer.layout_provider.graph_layout[2] == fixed_layout[2]
  
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 7 for calling a global function with example usage: test_from_networkx_fixed_layout(nx) without return types