code: def initialize_rnn_state(state, feed_dict=None):
      """Returns the initialized RNN state.
      The inputs are `LSTMStateTuple` or `State` of `RNNCells`, and an optional `feed_dict`.
  
      Parameters
      ----------
      state : RNN state.
          The TensorFlow's RNN state.
      feed_dict : dictionary
          Initial RNN state; if None, returns zero state.
  
      Returns
      -------
      RNN state
          The TensorFlow's RNN state.
  
      """
      if isinstance(state, LSTMStateTuple):
          c = state.c.eval(feed_dict=feed_dict)
          h = state.h.eval(feed_dict=feed_dict)
          return c, h
      else:
          new_state = state.eval(feed_dict=feed_dict)
          return new_state
  
imports: import numpy
  import tensorflow
  from tensorflow.python.ops.rnn_cell import LSTMStateTuple
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated, deprecated_alias
label_desc: Use image node_id 9 for calling a global function with example usage: initialize_rnn_state(state, feed_dict) and returns: c,  h, new_state