code: def total_params(m):
      "Give the number of parameters of a module and if it's trainable or not"
      params = sum([p.numel() for p in m.parameters()])
      trains = [p.requires_grad for p in m.parameters()]
      return params, (False if len(trains) == 0 else trains[0])
  
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 8 for calling a global function with example usage: total_params(m) and returns: params,  unknown