code: def testSetAndGetPriority(self):
      memory = self.create_default_memory()
      batch_size = 7
      indices = np.zeros(batch_size, dtype=np.int32)
      for index in range(batch_size):
          indices[index] = self.add_blank(memory)
      priorities = np.arange(batch_size)
      memory.set_priority(indices, priorities)
      # We send the indices in reverse order and verify the priorities come back
      # in that same order.
      fetched_priorities = memory.get_priority(np.flip(indices, 0))
      for i in range(batch_size):
          self.assertEqual(
              priorities[i], fetched_priorities[batch_size - 1 - i]
          )
  
file_path: ReAgent/reagent/test/replay_memory/prioritized_replay_buffer_test.py
imports: import unittest
  import numpy
  from reagent.replay_memory import prioritized_replay_buffer
label_desc: Use image node_id 6 for calling the PrioritizedReplayBufferTest obj's underlying member method code with example usage: obj.testSetAndGetPriority() without return types