code: def test_index_update():
      np_tensor = np.random.random((3, 5)).astype(dtype=np.float32)
      tensor = tl.tensor(np.copy(np_tensor))
      np_insert = np.random.random((3, 2)).astype(dtype=np.float32)
      insert = tl.tensor(np.copy(np_insert))
  
      np_tensor[:, 1:3] = np_insert
      tensor = tl.index_update(tensor, tl.index[:, 1:3], insert)
      assert_array_equal(np_tensor, tensor)
  
      np_tensor = np.random.random((3, 5)).astype(dtype=np.float32)
      tensor = tl.tensor(np.copy(np_tensor))
      np_tensor[2, :] = 2
      tensor = tl.index_update(tensor, tl.index[2, :], 2)
      assert_array_equal(np_tensor, tensor)
  
imports: from concurrent.futures import ThreadPoolExecutor
  import pytest
  from time import time
  import numpy
  from scipy.linalg import svd
  from scipy import special
  import tensorly
  from ..None import backend
  from ..testing import assert_allclose, assert_array_equal, assert_equal, assert_, assert_array_almost_equal, assert_raises
  from tensorly.tenalg.svd import SVD_FUNS, svd_interface
label_desc: Use image node_id 18 for calling a global function with example usage: test_index_update() without return types