code: def tensor_list_scatter(
      tensor, indices, element_shape=None, input_handle=None, name=None
  ):
      """Returns a TensorList created or updated by scattering `tensor`."""
      tensor = ops.convert_to_tensor(tensor)
      if input_handle is not None:
          output_handle = (
              gen_list_ops.tensor_list_scatter_into_existing_list(
                  input_handle=input_handle,
                  tensor=tensor,
                  indices=indices,
                  name=name,
              )
          )
          handle_data_util.copy_handle_data(input_handle, output_handle)
          return output_handle
      else:
          output_handle = gen_list_ops.tensor_list_scatter_v2(
              tensor=tensor,
              indices=indices,
              element_shape=_build_element_shape(element_shape),
              num_elements=-1,
              name=name,
          )
          _set_handle_data(output_handle, element_shape, tensor.dtype)
          return output_handle
  
imports: import numpy
  from tensorflow.core.framework import full_type_pb2
  from tensorflow.python.framework import cpp_shape_inference_pb2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_list_ops
  from tensorflow.python.ops import handle_data_util
  from tensorflow.python.ops.gen_list_ops import *
label_desc: Use image node_id 8 for calling a global function with example usage: tensor_list_scatter(tensor, indices, element_shape, input_handle, name) and returns: output_handle, output_handle