code: def test_subraph_right2():
      """Extraction of the 'right subgraph', with renumb = False"""
      x = basicdata()
      g = cross_knn(x, x, 2)
      valid = np.arange(10) < 7
      sr = g.subgraph_right(valid, renumb=False)
      assert sr.W == 10
      assert sr.V == 10
      assert sr.edges[:, 1].max() == 6
  
file_path: nipy/nipy/algorithms/graph/tests/test_bipartite_graph.py
imports: import numpy
  import numpy.random
  from ..bipartite_graph import check_feature_matrices, cross_eps, cross_knn
label_desc: Use image node_id 10 for calling a global function with example usage: test_subraph_right2() without return types