code: def _assertCircularOrdering(self, expected_order, given_order):
      for i in range(len(given_order)):
          self.assertIn(given_order[i], expected_order)
          if i > 0:
              prev_idx = expected_order.index(given_order[i - 1])
              cur_idx = expected_order.index(given_order[i])
              self.assertEqual(
                  cur_idx, (prev_idx + 1) % len(expected_order)
              )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents import specs
  from tf_agents.replay_buffers import episodic_replay_buffer
  from tf_agents.utils import common
  from tf_agents.utils import test_utils
  from tensorflow.python.ops import list_ops
label_desc: Use image node_id 2 for calling the StatefulEpisodicReplayBufferTest obj's underlying member method code with example usage: obj._assertCircularOrdering(expected_order, given_order) without return types