code: def _check_slice(sliceobj):
      # Fancy indexing always returns a copy, basic indexing returns a view
      a = np.arange(100).reshape((10, 10))
      b = a[sliceobj]
      if np.isscalar(b):
          return  # Can't check
      # Check if this is a view
      a[:] = 99
      b_is_view = np.all(b == 99)
      assert (not is_fancy(sliceobj)) == b_is_view
  
imports: import time
  from functools import partial
  from io import BytesIO
  from itertools import product
  from threading import Lock, Thread
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ..fileslice import _positive_slice, _simple_fileslice, calc_slicedefs, canonical_slicers, fileslice, fill_slicer, is_fancy, optimize_read_slicers, optimize_slicer, predict_shape, read_segments, slice2len, slice2outax, slicers2segments, strided_scalar, threshold_heuristic
label_desc: Use image node_id 1 for calling a global function with example usage: _check_slice(sliceobj) without return types