code: def torch_total_param_num(net):
      return sum([np.prod(p.shape) for p in net.parameters()])
  
imports: import torch.nn
  import torch.optim
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: torch_total_param_num(net) and returns: sum