docstr: Test where followed by a gather.
docstr_tok: ["Test","where","followed","by","a","gather","."]
code: def testWhereGather(self):
      """Test where followed by a gather."""
  
      with self.session() as sess:
          with self.test_scope():
              x = array_ops.placeholder(dtypes.bool)
              value = array_ops.constant(
                  [[0, 1], [2, 3]], dtypes.float32
              )
              true_vals = array_ops.where(x)
  
              # Gather 0, 2, 3.
              gathered = array_ops.gather_nd(value, true_vals)
  
          feed = [[True, False], [True, True]]
          self.assertAllEqual([0, 2, 3], sess.run(gathered, {x: feed}))
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/where_op_test.py
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
  from tensorflow.python.tpu import tpu
label_desc: Use image node_id 3 for calling the WhereOpTest obj's underlying member method code with example usage: obj.testWhereGather() without return types