code: def _is_xp(x):
      return isinstance(x, np.ndarray) or isinstance(x, cuda.ndarray)
  
imports: import sys
  import weakref
  import numpy
  import chainer
  from chainer.backends import cuda
  import chainer.function_node
label_desc: Use image node_id 1 for calling a global function with example usage: _is_xp(x) and returns: unknown