code: def testRequiredConstructorArgs(self):
      with self.assertRaisesRegex(
          NotImplementedError, "with return_state==False"
      ):
          rnn_wrapper.RNNWrapper(
              tf.keras.layers.LSTM(3, return_sequences=True)
          )
  
      with self.assertRaisesRegex(
          NotImplementedError, "with return_sequences==False"
      ):
          rnn_wrapper.RNNWrapper(
              tf.keras.layers.LSTM(3, return_state=True)
          )
  
file_path: agents/tf_agents/keras_layers/rnn_wrapper_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow.compat.v2
  from tf_agents.keras_layers import rnn_wrapper
  from tf_agents.utils import test_utils
label_desc: Use image node_id 4 for calling the RNNWrapperTest obj's underlying member method code with example usage: obj.testRequiredConstructorArgs() without return types