code: def testSampleWithInvalidQueryValue(self):
      self._tree.set(node_index=5, value=1.0)
      with self.assertRaises(
          ValueError, msg="query_value must be in [0, 1]."
      ):
          self._tree.sample(query_value=-0.1)
      with self.assertRaises(
          ValueError, msg="query_value must be in [0, 1]."
      ):
          self._tree.sample(query_value=1.1)
  
imports: import random
  import unittest
  from reagent.replay_memory import sum_tree
label_desc: Use image node_id 9 for calling the SumTreeTest obj's underlying member method code with example usage: obj.testSampleWithInvalidQueryValue() without return types