code: def save_param(dirname, var_name_list):
      """save_param"""
      for var_name in var_name_list:
          var = fluid.global_scope().find_var(var_name)
          var_tensor = var.get_tensor()
          np.save(
              os.path.join(dirname, var_name + ".npy"),
              np.array(var_tensor),
          )
  
file_path: PGL/legacy/examples/dgi/dgi.py
imports: import os
  import pgl
  from pgl import data_loader
  from pgl.utils.logger import log
  import paddle.fluid
  import numpy
  import time
  import argparse
label_desc: Use image node_id 2 for calling a global function with example usage: save_param(dirname, var_name_list) without return types