code: def test_rand_graph():
      g = dgl.rand_graph(10000, 100000)
      assert g.num_nodes() == 10000
      assert g.num_edges() == 100000
      # test random seed
      dgl.random.seed(42)
      g1 = dgl.rand_graph(100, 30)
      dgl.random.seed(42)
      g2 = dgl.rand_graph(100, 30)
      u1, v1 = g1.edges()
      u2, v2 = g2.edges()
      assert F.array_equal(u1, u2)
      assert F.array_equal(v1, v2)
  
imports: import unittest
  import backend
  import dgl
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_rand_graph() without return types