docstr: Tests whether indices with unknown rank works correctly.
docstr_tok: ["Tests","whether","indices","with","unknown","rank","works","correctly","."]
code: def testUnknownIndices(self):
      """Tests whether indices with unknown rank works correctly."""
      params = constant_op.constant(((0, 1, 2),))
      indices = array_ops.placeholder(dtypes.int32)
      gather_nd_t = array_ops.gather_nd(params, indices, batch_dims=1)
      shape = gather_nd_t.get_shape()
      self.assertIsNone(shape.ndims)
      self.assertIsNone(tensor_shape.dimension_value(shape[0]))
  
file_path: tensorflow/tensorflow/python/kernel_tests/v1_compat_tests/array_ops_test.py
imports: from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the BatchGatherNdTest obj's underlying member method code with example usage: obj.testUnknownIndices() without return types