code: def test_from_networkx_errors_with_mixed_attributes(nx) -> None:
      G = nx.Graph()
      G.add_nodes_from(
          [
              (0, {"attr_1": [1, 2], "attr_2": 10}),
              (1, {}),
              (2, {"attr_1": 3, "attr_2": 30}),
          ]
      )
  
      with pytest.raises(ValueError):
          bpg.from_networkx(G, nx.circular_layout)
  
      G = nx.Graph()
      G.add_edges_from(
          [
              (0, 1, {"attr_1": [1, 11]}),
              (0, 2, {"attr_1": 2, "attr_2": 10}),
          ]
      )
  
      with pytest.raises(ValueError):
          bpg.from_networkx(G, nx.circular_layout)
  
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 5 for calling a global function with example usage: test_from_networkx_errors_with_mixed_attributes(nx) without return types