code: def test_chromatic_polynomial(G, expected):
      assert nx.chromatic_polynomial(G).equals(expected)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: test_chromatic_polynomial(G, expected) without return types