code: def _compute_shape(tensors):
      if isinstance(tensors, list):
          shape_mem = [t.get_shape().as_list() for t in tensors]
      else:
          shape_mem = tensors.get_shape().as_list()
      return shape_mem
  
imports: import tensorflow
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.training import moving_averages
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.layers.core import Layer
label_desc: Use image node_id 4 for calling a global function with example usage: _compute_shape(tensors) and returns: shape_mem