code: def _generate_zero_filled_state(batch_size_tensor, state_size, dtype):
      """Generate a zero filled tensor with shape [batch_size, state_size]."""
      if batch_size_tensor is None or dtype is None:
          raise ValueError(
              "batch_size and dtype cannot be None while constructing initial state: "
              "batch_size={}, dtype={}".format(batch_size_tensor, dtype)
          )
  
      def create_zeros(unnested_state_size):
          flat_dims = tf.TensorShape(unnested_state_size).as_list()
          init_state_size = [batch_size_tensor] + flat_dims
          return tf.zeros(init_state_size, dtype=dtype)
  
      if tf.nest.is_nested(state_size):
          return tf.nest.map_structure(create_zeros, state_size)
      else:
          return create_zeros(state_size)
  
file_path: addons/tensorflow_addons/rnn/abstract_rnn_cell.py
imports: import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_zero_filled_state(batch_size_tensor, state_size, dtype) and returns: tf, tf, create_zeros