code: def _total_tensor_depth(tensor):
      """Returns the size of a tensor without the first (batch) dimension"""
      return np.prod(tensor.get_shape().as_list()[1:])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import abc
  from pydoc import locate
  import six
  import numpy
  import tensorflow
  from tensorflow.python.util import nest
  from seq2seq.configurable import Configurable
label_desc: Use image node_id 1 for calling a global function with example usage: _total_tensor_depth(tensor) and returns: np