code: def compute_gcn_norm(graph, gcn_norm=False):
      """Compute graph norm using GCN normalization method.
  
      Args:
  
         graph (pgl.Graph): The input graph.
  
         gcn_norm (bool): If gcn_norm is True, we calculate gcn normalization output;
                          If gcn_norm is False, we simply return None.
  
      Returns:
  
         norm (np.ndarray): Returns the gcn normalization results of the input graph.
  
      """
      if gcn_norm:
          degree = graph.indegree()
          norm = degree.astype(np.float32)
          norm = np.clip(norm, 1.0, np.max(norm))
          norm = np.power(norm, -0.5)
          norm = np.reshape(norm, [-1, 1])
      else:
          norm = None
      return norm
  
file_path: PGL/apps/GNNAutoScale/utils.py
imports: import time
  import functools
  import numpy
  import paddle
  import pgl
  from pgl.utils.logger import log
label_desc: Use image node_id 5 for calling a global function with example usage: compute_gcn_norm(graph, gcn_norm) and returns: norm