code: def comp_deg_norm(g):
      g = g.local_var()
      in_deg = g.in_degrees(range(g.number_of_nodes())).float().numpy()
      norm = 1.0 / in_deg
      norm[np.isinf(norm)] = 0
      return norm
  
file_path: dgl/examples/tensorflow/rgcn/utils.py
imports: import dgl
  import numpy
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: comp_deg_norm(g) and returns: norm