code: def get_graph_degree_norm(graph):
      """calculate graph degree normalization"""
      degree = paddle.zeros(shape=[graph.num_nodes], dtype="int64")
      v, u = graph.edges[:, 0], graph.edges[:, 1]
      degree = paddle.scatter(
          x=degree,
          overwrite=False,
          index=u,
          updates=paddle.ones_like(u, dtype="int64"),
      )
      norm = get_degree_norm(degree)
      return norm
  
imports: import os
  import sys
  import math
  import time
  import numpy
  import pickle
  import paddle
  import paddle.fluid
  import paddle.fluid.layers
  import paddle.static
  from paddle.common_ops_import import LayerHelper, check_type, check_variable_and_dtype
  from paddle.fluid.framework import Variable
  import pgl
  from pgl.utils.logger import log
label_desc: Use image node_id 12 for calling a global function with example usage: get_graph_degree_norm(graph) and returns: norm