code: def test_pass_initial_state(self):
      sequence = np.arange(24).reshape((2, 4, 3)).astype("float32")
      initial_state = np.arange(8).reshape((2, 4)).astype("float32")
      layer = layers.SimpleRNN(
          4,
          kernel_initializer=initializers.Constant(0.01),
          recurrent_initializer=initializers.Constant(0.02),
          bias_initializer=initializers.Constant(0.03),
      )
      output = layer(sequence, initial_state=initial_state)
      self.assertAllClose(
          np.array(
              [
                  [0.33621645, 0.33621645, 0.33621645, 0.33621645],
                  [0.6262637, 0.6262637, 0.6262637, 0.6262637],
              ]
          ),
          output,
      )
  
      layer = layers.SimpleRNN(
          4,
          kernel_initializer=initializers.Constant(0.01),
          recurrent_initializer=initializers.Constant(0.02),
          bias_initializer=initializers.Constant(0.03),
          go_backwards=True,
      )
      output = layer(sequence, initial_state=initial_state)
      self.assertAllClose(
          np.array(
              [
                  [0.07344437, 0.07344437, 0.07344437, 0.07344437],
                  [0.43043602, 0.43043602, 0.43043602, 0.43043602],
              ]
          ),
          output,
      )
  
file_path: keras/keras/layers/rnn/simple_rnn_test.py
imports: import numpy
  import pytest
  from keras import initializers
  from keras import layers
  from keras import testing
label_desc: Use image node_id 4 for calling the SimpleRNNTest obj's underlying member method code with example usage: obj.test_pass_initial_state() without return types