code: def testSelect(self):
      for dtype in self.numeric_types:
          self._testTernary(
              array_ops.where,
              np.array(False),
              np.array(2, dtype=dtype),
              np.array(7, dtype=dtype),
              expected=np.array(7, dtype=dtype),
          )
  
          self._testTernary(
              array_ops.where,
              np.array(True),
              np.array([1, 2, 3, 4], dtype=dtype),
              np.array([5, 6, 7, 8], dtype=dtype),
              expected=np.array([1, 2, 3, 4], dtype=dtype),
          )
  
          self._testTernary(
              array_ops.where,
              np.array(False),
              np.array([[1, 2], [3, 4], [5, 6]], dtype=dtype),
              np.array([[7, 8], [9, 10], [11, 12]], dtype=dtype),
              expected=np.array(
                  [[7, 8], [9, 10], [11, 12]], dtype=dtype
              ),
          )
  
          self._testTernary(
              array_ops.where,
              np.array([0, 1, 1, 0], dtype=np.bool_),
              np.array([1, 2, 3, 4], dtype=dtype),
              np.array([5, 6, 7, 8], dtype=dtype),
              expected=np.array([5, 2, 3, 8], dtype=dtype),
          )
  
          self._testTernary(
              array_ops.where,
              np.array([0, 1, 0], dtype=np.bool_),
              np.array([[1, 2], [3, 4], [5, 6]], dtype=dtype),
              np.array([[7, 8], [9, 10], [11, 12]], dtype=dtype),
              expected=np.array(
                  [[7, 8], [3, 4], [11, 12]], dtype=dtype
              ),
          )
  
imports: from absl.testing import parameterized
  import numpy
  import scipy.special
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 4 for calling the TernaryOpsTest obj's underlying member method code with example usage: obj.testSelect() without return types