code: def count_vars(scope=""):
      v = get_vars(scope)
      return sum([np.prod(var.shape.as_list()) for var in v])
  
file_path: spinningup/spinup/algos/tf1/vpg/core.py
imports: import numpy
  import tensorflow
  import scipy.signal
  from gym.spaces import Box, Discrete
label_desc: Use image node_id 8 for calling a global function with example usage: count_vars(scope) and returns: sum