code: def count_params(weights):
      shapes = [v.shape for v in weights]
      return int(sum(math.prod(p) for p in shapes))
  
file_path: keras/keras/utils/summary_utils.py
imports: import math
  import re
  import shutil
  import rich
  import rich.console
  import rich.markup
  import rich.table
  import tree
  from keras import backend
  from keras.utils import dtype_utils
  from keras.utils import io_utils
label_desc: Use image node_id 1 for calling a global function with example usage: count_params(weights) and returns: int