code: def fast_isin(X, Y):
      """
      Indices of elements in a numpy array that appear in another.
  
      Fast routine for determining indices of elements in numpy array `X` that
      appear in numpy array `Y`, returning a boolean array `Z` such that::
  
              Z[i] = X[i] in Y
  
      """
      if len(Y) > 0:
          T = Y.copy()
          T.sort()
          D = T.searchsorted(X)
          T = np.append(T, np.array([0]))
          W = T[D] == X
          if isinstance(W, bool):
              return np.zeros((len(X),), bool)
          else:
              return T[D] == X
      else:
          return np.zeros((len(X),), bool)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from future import standard_library
  from builtins import str
  from builtins import range
  from past.builtins import basestring
  from past.utils import old_div
  import datetime
  import numpy
  import logging
  import os
  import shutil
  import numpy
  from .None import pyll
  from contextlib import contextmanager
label_desc: Use image node_id 7 for calling a global function with example usage: fast_isin(X, Y) and returns: np, np, unknown