code: def normalize_adj(adj):
      """Symmetrically normalize adjacency matrix."""
      adj = sp.coo_matrix(adj)
      rowsum = np.array(adj.sum(1))
      d_inv_sqrt = np.power(rowsum, -0.5).flatten()
      d_inv_sqrt[np.isinf(d_inv_sqrt)] = 0.0
      d_mat_inv_sqrt = sp.diags(d_inv_sqrt)
      return (
          adj.dot(d_mat_inv_sqrt)
          .transpose()
          .dot(d_mat_inv_sqrt)
          .tocoo()
      )
  
file_path: OpenNE/src/openne/gcn/utils.py
imports: import numpy
  import pickle
  import networkx
  import scipy.sparse
  from scipy.sparse.linalg.eigen.arpack import eigsh
  import sys
label_desc: Use image node_id 6 for calling a global function with example usage: normalize_adj(adj) and returns: adj