code: def test_not_bipartite_raises():
      G = nx.complete_graph(5)
      with pytest.raises(nx.NetworkXError, match=".*not bipartite"):
          nx.bipartite.maximal_extendability(G)
  
file_path: networkx/networkx/algorithms/bipartite/tests/test_extendability.py
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: test_not_bipartite_raises() without return types