code: def test_ordering(self):
      G = nx.DiGraph()
      G.add_edge(1, 2)
      G.add_edge(2, 3)
      G.add_edge(3, 1)
      M = nx.to_scipy_sparse_array(G, nodelist=[3, 2, 1])
      np.testing.assert_equal(
          M.toarray(), np.array([[0, 0, 1], [1, 0, 0], [0, 1, 0]])
      )
  
imports: import pytest
  import networkx
  from networkx.generators.classic import barbell_graph, cycle_graph, path_graph
  from networkx.utils import graphs_equal
label_desc: Use image node_id 16 for calling the TestConvertScipy obj's underlying member method code with example usage: obj.test_ordering() without return types