code: def _tensor_scatter_nd_sub(
      tensor, indices, updates, name=None
  ):  # pylint: disable=unused-argument
      """Numpy implementation of `tf.tensor_scatter_nd_sub`."""
      indices = _convert_to_tensor(indices)
      tensor = _convert_to_tensor(tensor)
      updates = _convert_to_tensor(updates)
      indices = tuple(
          indices[..., i] for i in range(indices.shape[-1])
      )  # TODO(b/140685491)
      if JAX_MODE:
          return tensor.at[indices].add(np.negative(updates))
      tensor[indices] -= updates
      return tensor
  
file_path: probability/tensorflow_probability/python/internal/backend/numpy/misc.py
imports: import collections
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import errors
  from tensorflow_probability.python.internal.backend.numpy.numpy_math import floor
  from tensorflow_probability.python.internal.backend.numpy.numpy_math import truediv
  from tensorflow_probability.python.internal.backend.numpy.ops import _convert_to_tensor
  from tensorflow_probability.python.internal.backend.numpy.ops import clip_by_value
  from tensorflow_probability.python.internal.backend.numpy.ops import is_tensor
label_desc: Use image node_id 7 for calling a global function with example usage: _tensor_scatter_nd_sub(tensor, indices, updates, name) and returns: tensor, tensor