code: def pre_gather(features, name_prefix, node_index_val):
      """Get features with respect to node index."""
      node_index, init = paddle_helper.constant(
          "%s_node_index" % (name_prefix),
          dtype="int32",
          value=node_index_val,
      )
      logits = fluid.layers.gather(features, node_index)
  
      return logits, init
  
file_path: PGL/legacy/examples/sgc/sgc.py
imports: import os
  import argparse
  import numpy
  import random
  import time
  import pgl
  from pgl import data_loader
  from pgl.utils.logger import log
  from pgl.utils import paddle_helper
  import paddle.fluid
label_desc: Use image node_id 4 for calling a global function with example usage: pre_gather(features, name_prefix, node_index_val) and returns: logits,  init