def is_cupy_array(arr):
if cupy is None:<EOL><INDENT>return False<EOL><DEDENT>elif isinstance(arr, cupy.ndarray):<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Check whether an array is a cupy array