code: def count_params(model, verbose=False):
      total_params = sum(p.numel() for p in model.parameters())
      if verbose:
          logging.info(
              f"{model.__class__.__name__} has {total_params * 1.e-6:.2f} M params."
          )
      return total_params
  
imports: import importlib
  import multiprocessing
  from collections import abc
  from inspect import isfunction
  from queue import Queue
  from threading import Thread
  import numpy
  import torch
  from PIL import Image, ImageDraw
  from nemo.utils import logging
label_desc: Use image node_id 7 for calling a global function with example usage: count_params(model, verbose) and returns: total_params