code: def intersect1d(tensor1, tensor2):
      aux = torch.cat((tensor1, tensor2), dim=0)
      aux = aux.sort(descending=True)[0]
      return aux[:-1][(aux[1:] == aux[:-1]).data]
  
imports: import numpy
  import scipy.misc
  import scipy.ndimage
  import torch
  from torch.autograd import Variable
  import torch.nn
label_desc: Use image node_id 21 for calling a global function with example usage: intersect1d(tensor1, tensor2) and returns: aux