code: def intersects(x, y, assume_unique=False):
      """Return the intersection of given two arrays"""
      mask = np.in1d(x, y, assume_unique=assume_unique)
      x_intersects_y = x[mask]
  
      return x_intersects_y
  
file_path: cornac/cornac/utils/common.py
imports: import numbers
  import numpy
  import scipy.sparse
  from .fast_sparse_funcs import inplace_csr_row_normalize_l1, inplace_csr_row_normalize_l2
label_desc: Use image node_id 4 for calling a global function with example usage: intersects(x, y, assume_unique) and returns: x_intersects_y