code: def testEmptySlices(self):
      with self.session():
          for dtype in _TEST_TYPES:
              for itype in np.int32, np.int64:
                  params = np.zeros(
                      (7, 0, 0), dtype=dtype.as_numpy_dtype
                  )
                  indices = np.array([3, 4], dtype=itype)
                  self.assertAllEqual(
                      self.evaluate(
                          array_ops.batch_gather(params, indices)
                      ),
                      np.zeros((2, 0, 0)),
                  )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/array_ops/batch_gather_op_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the GatherTest obj's underlying member method code with example usage: obj.testEmptySlices() without return types