code: def sum_up_params(model):
      """Count the model parameters"""
      n = []
      if model.fst:
          p = model.fst_u_embeddings.weight.cpu().data.numel()
          n.append(p)
          p = model.fst_state_sum_u.cpu().data.numel()
          n.append(p)
      if model.snd:
          p = model.snd_u_embeddings.weight.cpu().data.numel() * 2
          n.append(p)
          p = model.snd_state_sum_u.cpu().data.numel() * 2
          n.append(p)
      n.append(model.lookup_table.cpu().numel())
      try:
          n.append(model.index_emb_negu.cpu().numel() * 2)
      except:
          pass
      print("#params " + str(sum(n)))
  
label_desc: Use image node_id 2 for calling a global function with example usage: sum_up_params(model) without return types