code: def make_numpy_compatible(s):
      return s if not isinstance(s, np_arrays.ndarray) else s.numpy()
  
file_path: tensorflow-upstream/tensorflow/python/ops/numpy_ops/np_logic_test.py
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops.numpy_ops import np_array_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: make_numpy_compatible(s) and returns: unknown