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_fn = lambda: tf.constant(1.0)
      encoder = gather_encoder.GatherEncoder.from_encoder(
          core_encoder.EncoderComposer(
              test_utils.PlusOneOverNEncodingStage()
          ).make(),
          tf.TensorSpec.from_tensor(x_fn()),
      )
  
      num_summands = 3
      stateful_iteration = _make_iteration_function(
          encoder, x_fn, num_summands
      )
      state = encoder.initial_state()
      stateless_iteration = _make_stateless_iteration_function(
          encoder, x_fn, num_summands
      )
  
      stateful_data = self.evaluate(stateful_iteration(state))
      stateless_data = self.evaluate(stateless_iteration())
  
      self.assertAllClose(
          stateful_data.encoded_x, stateless_data.encoded_x
      )
      self.assertAllClose(
          stateful_data.decoded_x, stateless_data.decoded_x
      )
  
imports: import collections
  from absl.testing import parameterized
  import numpy
  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 encoding_stage
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import gather_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 3 for calling the GatherEncoderTest obj's underlying member method code with example usage: obj.test_none_state_equal_to_initial_state() without return types