code: def test_grid_3d_6():
      nx, ny, nz = 5, 5, 5
      xyz = np.reshape(np.indices((nx, ny, nz)), (3, nx * ny * nz)).T
      adj = wgraph_from_3d_grid(xyz, 26).to_coo_matrix().tolil()
      assert len(adj.rows[63]) == 26
      for i in [
          62,
          64,
          58,
          68,
          38,
          88,
          57,
          67,
          37,
          87,
          59,
          69,
          39,
          89,
          33,
          83,
          43,
          93,
          32,
          82,
          42,
          92,
          34,
          84,
          44,
          94,
      ]:
          assert i in adj.rows[63]
  
imports: import numpy
  import numpy.random
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from ..graph import WeightedGraph, complete_graph, concatenate_graphs, eps_nn, knn, mst, wgraph_from_3d_grid, wgraph_from_adjacency, wgraph_from_coo_matrix
label_desc: Use image node_id 17 for calling a global function with example usage: test_grid_3d_6() without return types