code: def test_insert_execution(setup):
      raw = np.random.randint(0, 100, size=(20, 10))
      a = tensor(raw, chunk_size=6)
  
      r1 = mt.insert(a, 1, 5)
      result = r1.execute().fetch()
      np.testing.assert_array_equal(np.insert(raw, 1, 5), result)
  
      r2 = mt.insert(a, [3, 50, 10], 10)
      result = r2.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, [3, 50, 10], 10), result
      )
  
      r3 = mt.insert(a, [2, 3, 4], [5, 6, 7])
      result = r3.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, [2, 3, 4], [5, 6, 7]), result
      )
  
      # specify axis
      r4 = mt.insert(a, 5, 4, axis=0)
      result = r4.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, 5, 4, axis=0), result
      )
  
      r5 = mt.insert(
          a, [1, 2, 6], np.arange(20).reshape((20, 1)), axis=1
      )
      result = r5.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(
              raw, [1, 2, 6], np.arange(20).reshape((20, 1)), axis=1
          ),
          result,
      )
  
      r6 = mt.insert(
          a, [1, 16, 10], np.arange(30).reshape((3, 10)), axis=0
      )
      result = r6.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(
              raw, [1, 16, 10], np.arange(30).reshape((3, 10)), axis=0
          ),
          result,
      )
  
      # test mt.tensor as values
      r5 = mt.insert(
          a, [1, 2, 6], mt.arange(20).reshape((20, 1)), axis=1
      )
      result = r5.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(
              raw, [1, 2, 6], np.arange(20).reshape((20, 1)), axis=1
          ),
          result,
      )
  
      r6 = mt.insert(
          a, [1, 16, 10], mt.arange(30).reshape((3, 10)), axis=0
      )
      result = r6.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(
              raw, [1, 16, 10], np.arange(30).reshape((3, 10)), axis=0
          ),
          result,
      )
  
      r7 = mt.insert(a, [20, 30, 50], mt.tensor([5, 6, 7]))
      result = r7.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, [20, 30, 50], [5, 6, 7]), result
      )
  
      # test mt.tensor as index
      r8 = mt.insert(
          a,
          mt.tensor([1, 2, 6]),
          mt.arange(20).reshape((20, 1)),
          axis=1,
      )
      result = r8.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(
              raw, [1, 2, 6], np.arange(20).reshape((20, 1)), axis=1
          ),
          result,
      )
  
      r9 = mt.insert(
          a,
          mt.tensor([1, 16, 10]),
          mt.arange(30).reshape((3, 10)),
          axis=0,
      )
      result = r9.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(
              raw, [1, 16, 10], np.arange(30).reshape((3, 10)), axis=0
          ),
          result,
      )
  
      r10 = mt.insert(a, mt.tensor([20, 30, 50]), mt.tensor([5, 6, 7]))
      result = r10.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, [20, 30, 50], [5, 6, 7]), result
      )
  
      r11 = mt.insert(a, slice(0, 10), mt.arange(10), axis=0)
      result = r11.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, slice(0, 10), np.arange(10), axis=0), result
      )
  
      r12 = mt.insert(a, 10, 5, axis=1)
      result = r12.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, 10, 5, axis=1), result
      )
  
      r13 = mt.insert(a, [2, 10], 5, axis=1)
      result = r13.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, [2, 10], 5, axis=1), result
      )
  
      r14 = mt.insert(a, mt.tensor([2, 20]), 5, axis=0)
      result = r14.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, [2, 20], 5, axis=0), result
      )
  
      r15 = mt.insert(a, 7, mt.arange(20), axis=1)
      result = r15.execute().fetch()
      np.testing.assert_array_equal(
          np.insert(raw, 7, mt.arange(20), axis=1), result
      )
  
imports: import numpy
  import scipy.sparse
  import pandas
  import pytest
  from ....None import dataframe
  from ....None import tensor
  from ....None import execute, fetch
  from ....tests.core import require_cupy
  from ...datasource import tensor, ones, zeros, arange
  from ..None import copyto, transpose, moveaxis, broadcast_to, broadcast_arrays, where, expand_dims, rollaxis, atleast_1d, atleast_2d, atleast_3d, argwhere, array_split, split, hsplit, vsplit, dsplit, roll, squeeze, diff, ediff1d, flip, flipud, fliplr, repeat, tile, isin, searchsorted, unique, sort, argsort, partition, argpartition, topk, argtopk, trapz, shape, to_gpu, to_cpu, swapaxes
label_desc: Use image node_id 47 for calling a global function with example usage: test_insert_execution(setup) without return types