code: def normalize_adj_matrix(adj):
      """Normalize adjacency matrix."""
      rowsum = np.array(adj.sum(1))
      d_inv_sqrt = np.power(rowsum, -0.5).flatten()
      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: neural-structured-learning/research/gnn-survey/utils.py
imports: import os
  from models import GAT
  from models import GCN
  from models import GIN
  import numpy
  import scipy.sparse
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: normalize_adj_matrix(adj) and returns: adj