code: def union1d(arr1, arr2):
      """Find the union of two arrays.
  
      Returns the unique, sorted array of values that are in either of
      the two input arrays.
  
      Parameters
      ----------
      arr1, arr2 : cupy.ndarray
          Input arrays. They are flattend if they are not already 1-D.
  
      Returns
      -------
      union1d : cupy.ndarray
          Sorted union of the input arrays.
  
      See Also
      --------
      numpy.union1d
  
      """
      return cupy.unique(cupy.concatenate((arr1, arr2), axis=None))
  
file_path: cupy/cupy/_logic/truth.py
imports: import warnings
  import cupy
  from cupy._core import _routines_logic
  from cupy._core import _fusion_thread_local
  from cupy._sorting import search
  from cupy import _util
label_desc: Use image node_id 8 for calling a global function with example usage: union1d(arr1, arr2) and returns: cupy