code: def test_subraph_left2():
      """Extraction of the 'left subgraph', without renumb=False"""
      x = basicdata()
      g = cross_knn(x, x, 2)
      valid = np.arange(10) < 7
      sl = g.subgraph_left(valid, renumb=False)
      assert sl.V == 10
      assert sl.W == 10
      assert sl.edges[:, 0].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 8 for calling a global function with example usage: test_subraph_left2() without return types