code: def gcn_norm(edge_index, num_nodes):
      _, col = edge_index[:, 0], edge_index[:, 1]
      degree = paddle.zeros(shape=[num_nodes], dtype="int64")
      degree = paddle.scatter(
          x=degree,
          index=col,
          updates=paddle.ones_like(col, dtype="int64"),
          overwrite=False,
      )
      norm = paddle.cast(degree, dtype=paddle.get_default_dtype())
      norm = paddle.clip(norm, min=1.0)
      norm = paddle.pow(norm, -0.5)
      norm = paddle.reshape(norm, [-1, 1])
      return norm
  
file_path: PGL/examples/gnn_depoly/models/gcn.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from .base_conv import BaseConv
label_desc: Use image node_id 1 for calling a global function with example usage: gcn_norm(edge_index, num_nodes) and returns: norm