docstr: Tests that reservoirs are deterministic at a bucket level.
  
  This means that only the order elements are added within a
  bucket matters.
docstr_tok: ["Tests","that","reservoirs","are","deterministic","at","a","bucket","level",".","This","means","that","only","the","order","elements","are","added","within","a","bucket","matters","."]
code: def testBucketDeterminism(self):
      """Tests that reservoirs are deterministic at a bucket level.
  
      This means that only the order elements are added within a
      bucket matters.
      """
      separate_reservoir = reservoir.Reservoir(10)
      interleaved_reservoir = reservoir.Reservoir(10)
      for i in range(100):
          separate_reservoir.AddItem("key1", i)
      for i in range(100):
          separate_reservoir.AddItem("key2", i)
      for i in range(100):
          interleaved_reservoir.AddItem("key1", i)
          interleaved_reservoir.AddItem("key2", i)
  
      for key in ["key1", "key2"]:
          self.assertEqual(
              separate_reservoir.Items(key),
              interleaved_reservoir.Items(key),
          )
  
imports: import tensorflow
  from tensorboard.backend.event_processing import reservoir
label_desc: Use image node_id 6 for calling the ReservoirTest obj's underlying member method code with example usage: obj.testBucketDeterminism() without return types