def _is_numpy_array(obj):
import sys<EOL>np = sys.modules.get("<STR_LIT>")<EOL>if np is not None:<EOL><INDENT>return isinstance(obj, np.ndarray)<EOL><DEDENT>return False<EOL>
Return true if the given object is a numpy array.  Make a special effort to
avoid importing numpy unless it's really necessary.