code: def calc_shape_size(shape, batch_size):
      size = 1
      for d in shape.dim:
          if d < 0:
              d = batch_size
          size *= d
      return size
  
imports: import pickle
  import zlib
  from collections import OrderedDict
  from os.path import abspath, join, dirname, expanduser
  import glob
  import os
  import yaml
  import certifi
  import ssl
  from nnabla.utils import nnabla_pb2
  from nnabla.logger import logger
label_desc: Use image node_id 19 for calling a global function with example usage: calc_shape_size(shape, batch_size) and returns: size