code: def test_adjacency():
      sp_g, g = generate_graph(100)
      adj = mx.nd.contrib.dgl_adjacency(g)
      assert adj.dtype == np.float32
      assert adj.shape == g.shape
      assert_array_equal(adj.indptr, g.indptr)
      assert_array_equal(adj.indices, g.indices)
      assert_array_equal(adj.data, mx.nd.ones(shape=g.indices.shape))
  
file_path: mxnet/tests/python/unittest/test_dgl_graph.py
imports: from __future__ import print_function
  import numpy
  import scipy
  import mxnet
  import random
  import itertools
  from numpy.testing import assert_allclose, assert_array_equal
  from mxnet.test_utils import *
  import unittest
label_desc: Use image node_id 9 for calling a global function with example usage: test_adjacency() without return types