code: def testBooleanScatterUpdate(self):
      if not test.is_gpu_available():
          with self.session(use_gpu=False):
              var = variables.Variable([True, False])
              update0 = state_ops.scatter_update(var, 1, True)
              update1 = state_ops.scatter_update(
                  var,
                  constant_op.constant(0, dtype=dtypes.int64),
                  False,
              )
              self.evaluate(var.initializer)
  
              self.evaluate([update0, update1])
  
              self.assertAllEqual([False, True], self.evaluate(var))
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import ref_variable
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 29 for calling the ScatterTest obj's underlying member method code with example usage: obj.testBooleanScatterUpdate() without return types