code: def count_params(model, verbose=False):
      total_params = sum(p.numel() for p in model.parameters())
      if verbose:
          print(
              f"{model.__class__.__name__} has {total_params * 1.e-6:.2f} M params."
          )
      return total_params
  
imports: import functools
  import importlib
  import os
  from functools import partial
  from inspect import isfunction
  import fsspec
  import numpy
  import torch
  from PIL import Image, ImageDraw, ImageFont
  from safetensors.torch import load_file
label_desc: Use image node_id 17 for calling a global function with example usage: count_params(model, verbose) and returns: total_params