code: def test_builder_invalid_indices(self, backend, indices_val):
      def prog(x):
          params = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
          indices = np.array(indices_val, dtype=np.int32)
          res = mb.gather_nd(x=params, indices=indices, batch_dims=1)
          return res
  
      mb.program(
          input_specs=[mb.TensorSpec(shape=(1,), dtype=types.fp32)],
          opset_version=backend.opset_version,
      )(prog)
  
file_path: coremltools/coremltools/converters/mil/mil/ops/tests/iOS16/test_scatter_gather.py
imports: import itertools
  import numpy
  import pytest
  import coremltools
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.ops.tests.iOS14.test_scatter_gather import TestGatherAlongAxis
  from coremltools.converters.mil.mil.ops.tests.iOS16 import backends
  from coremltools.converters.mil.mil.ops.tests.testing_utils import mark_api_breaking, run_compare_builder
  from coremltools.converters.mil.testing_reqs import compute_units
label_desc: Use image node_id 2 for calling the TestGatherNd obj's underlying member method code with example usage: obj.test_builder_invalid_indices(backend, indices_val) and returns: res