code: def testEmptySlices(self):
      for dtype in _TEST_TYPES:
          for itype in _INDEX_TYPES:
              # Leading axis gather.
              with self.subTest(dtype=dtype, itype=itype):
                  params = np.zeros(
                      (7, 0, 0), dtype=dtype.as_numpy_dtype
                  )
                  indices = np.array([3, 4], dtype=itype.as_numpy_dtype)
                  gather = array_ops.gather(params, indices, axis=0)
                  self.assertAllEqual(gather, np.zeros((2, 0, 0)))
  
                  # Middle axis gather.
                  params = np.zeros(
                      (0, 7, 0), dtype=dtype.as_numpy_dtype
                  )
                  gather = array_ops.gather(params, indices, axis=1)
                  self.assertAllEqual(gather, np.zeros((0, 2, 0)))
  
                  # Trailing axis gather.
                  params = np.zeros(
                      (0, 0, 7), dtype=dtype.as_numpy_dtype
                  )
                  gather = array_ops.gather(params, indices, axis=2)
                  self.assertAllEqual(gather, np.zeros((0, 0, 2)))
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import ref_variable
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 15 for calling the GatherTest obj's underlying member method code with example usage: obj.testEmptySlices() without return types