code: def count_parameters(model):
      r"""Count number of trainable parameters in a network"""
      return sum(
          p.numel() for p in model.parameters() if p.requires_grad
      )
  
imports: import datetime
  import glob
  import os
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: count_parameters(model) and returns: sum