code: def _tsize(st, key):
      tslice = st.get_slice(key)
      shape = tslice.get_shape()
      numel = 1
      for x in shape:
          numel *= x
      dtype = tslice.get_dtype()
      del tslice
      if dtype == "I32":
          return numel * 4
      elif dtype == "I16":
          return numel * 2
      elif dtype == "F16":
          return numel * 2
      elif dtype == "F32":
          return numel * 4
      else:
          raise ValueError("Unexpected datatype: " + key)
  
label_desc: Use image node_id 1 for calling a global function with example usage: _tsize(st, key) and returns: unknown, unknown, unknown, unknown