code: def test_statefulness_two_states(self):
      sequence = np.ones((1, 2, 3))
      layer = layers.RNN(TwoStatesRNNCell(2), stateful=True)
      layer(sequence)
      output = layer(sequence)
      self.assertAllClose(np.array([[90.0, 90.0]]), output)
  
      layer = layers.RNN(
          TwoStatesRNNCell(2), stateful=True, return_state=True
      )
      layer(sequence)
      output, state_1, state_2 = layer(sequence)
      self.assertAllClose(np.array([[90.0, 90.0]]), output)
      self.assertAllClose(np.array([[45.0, 45.0]]), state_1)
      self.assertAllClose(np.array([[45.0, 45.0]]), state_2)
  
imports: import numpy
  import pytest
  from keras import layers
  from keras import ops
  from keras import testing
label_desc: Use image node_id 10 for calling the RNNTest obj's underlying member method code with example usage: obj.test_statefulness_two_states() without return types