code: def test_not_enough_neighbors():
      with pytest.raises(NetworkXError):
          G = complete_bipartite_graph(1, 2)
          node_redundancy(G)
  
imports: import pytest
  from networkx import NetworkXError, cycle_graph
  from networkx.algorithms.bipartite import complete_bipartite_graph, node_redundancy
label_desc: Use image node_id 3 for calling a global function with example usage: test_not_enough_neighbors() without return types