code: def remove_duplitcate(arr, ref):
      """doc"""
      ref_size = paddle.shape(ref)[0]
      arr_concat = paddle.concat([ref, arr], axis=0)
      uniq_ele, inverse = paddle.unique(arr_concat, return_inverse=True)
      zeros = paddle.zeros_like(uniq_ele, dtype="int32")
  
      ref_inv = inverse[:ref_size]
      exits_flag = paddle.scatter(
          zeros, ref_inv, paddle.ones_like(ref_inv, dtype="int32")
      )
      mask = paddle.gather(exits_flag, inverse[ref_size:])
      return mask == 0
  
imports: import os
  import sys
  import math
  import time
  import numpy
  import pickle
  import paddle
  import paddle.fluid
  import paddle.fluid.layers
  import paddle.static
  from paddle.common_ops_import import LayerHelper, check_type, check_variable_and_dtype
  from paddle.fluid.framework import Variable
  import pgl
  from pgl.utils.logger import log
label_desc: Use image node_id 17 for calling a global function with example usage: remove_duplitcate(arr, ref) and returns: unknown