code: def set_item(target, i, x):
      """The slice write operator (i.e. __setitem__).
  
      Note: it is unspecified whether target will be mutated or not. In general,
      if target is mutable (like Python lists), it will be mutated.
  
      Args:
        target: An entity that supports setitem semantics.
        i: Index to modify.
        x: The new element value.
  
      Returns:
        Same as target, after the update was performed.
  
      Raises:
        ValueError: if target is not of a supported type.
      """
      if isinstance(target, tensor_array_ops.TensorArray):
          return _tf_tensorarray_set_item(target, i, x)
      elif tensor_util.is_tf_type(target):
          if target.dtype == dtypes.variant:
              return _tf_tensor_list_set_item(target, i, x)
          else:
              return _tf_tensor_set_item(target, i, x)
      else:
          return _py_set_item(target, i, x)
  
imports: import collections
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gen_string_ops
  from tensorflow.python.ops import list_ops
  from tensorflow.python.ops import tensor_array_ops
label_desc: Use image node_id 7 for calling a global function with example usage: set_item(target, i, x) and returns: _tf_tensorarray_set_item, _py_set_item, _tf_tensor_list_set_item, _tf_tensor_set_item