code: def _scatter_element_add_torch(tensor, index, value):
      """In-place addition of a multidimensional value over various
      indices of a tensor. Note that Torch only supports index assignments
      on non-leaf nodes; if the node is a leaf, we must clone it first.
      """
      if tensor.is_leaf:
          tensor = tensor.clone()
      tensor[tuple(index)] += value
      return tensor
  
imports: from importlib import import_module
  import autoray
  import numpy
  import semantic_version
  from scipy.linalg import block_diag
  from .utils import get_deep_interface
label_desc: Use image node_id 32 for calling a global function with example usage: _scatter_element_add_torch(tensor, index, value) and returns: tensor