code: def get_n_params(model):
      pp = 0
      for p in list(model.parameters()):
          nn = 1
          for s in list(p.size()):
              nn = nn * s
          pp += nn
      return pp
  
file_path: dgl/examples/pytorch/hgt/train_acm.py
imports: import argparse
  import math
  import urllib.request
  import numpy
  import scipy.io
  from model import *
  import dgl
label_desc: Use image node_id 1 for calling a global function with example usage: get_n_params(model) and returns: pp