code: def test_union1d_execution(setup):
      rs = np.random.RandomState(0)
      raw1 = rs.random(10)
      raw2 = rs.random(9)
  
      t1 = tensor(raw1, chunk_size=3)
      t2 = tensor(raw2, chunk_size=4)
  
      t = union1d(t1, t2, aggregate_size=1)
      res = t.execute().fetch()
      expected = np.union1d(raw1, raw2)
      np.testing.assert_array_equal(res, expected)
  
      t = union1d(t1, t2)
      res = t.execute().fetch()
      expected = np.union1d(raw1, raw2)
      np.testing.assert_array_equal(res, expected)
  
file_path: mars/mars/tensor/merge/tests/test_merge_execution.py
imports: import numpy
  import scipy.sparse
  import pytest
  from ...datasource import tensor, empty, eye, ones, zeros
  from ...None import concatenate, stack, hstack, vstack, dstack, column_stack, union1d, array, block, append
label_desc: Use image node_id 7 for calling a global function with example usage: test_union1d_execution(setup) without return types