docstr: Tests that not providing state is the same as initial_state.
docstr_tok: ["Tests","that","not","providing","state","is","the","same","as","initial_state","."]
code: def test_none_state_equal_to_initial_state(self):
      """Tests that not providing state is the same as initial_state."""
      x = tf.constant(1.0)
      encoder = simple_encoder.SimpleEncoder(
          core_encoder.EncoderComposer(
              test_utils.PlusOneOverNEncodingStage()
          ).make(),
          tf.TensorSpec.from_tensor(x),
      )
  
      state = encoder.initial_state()
      stateful_iteration = _make_iteration_function(encoder)
  
      @tf.function
      def stateless_iteration(x):
          encoded_x, _ = encoder.encode(x)
          decoded_x = encoder.decode(encoded_x)
          return encoded_x, decoded_x
  
      _, encoded_x_stateful, decoded_x_stateful, _ = self.evaluate(
          stateful_iteration(x, state)
      )
      encoded_x_stateless, decoded_x_stateless = self.evaluate(
          stateless_iteration(x)
      )
  
      self.assertAllClose(encoded_x_stateful, encoded_x_stateless)
      self.assertAllClose(decoded_x_stateful, decoded_x_stateless)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.framework import test_util
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import core_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import simple_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 3 for calling the SimpleEncoderTest obj's underlying member method code with example usage: obj.test_none_state_equal_to_initial_state() and returns: encoded_x,  decoded_x