code: def test_fileslice_errors():
      # Test fileslice causes error on fancy indexing
      arr = np.arange(24).reshape((2, 3, 4))
      fobj = BytesIO(arr.tobytes())
      _check_slicer((1,), arr, fobj, 0, "C")
      # Fancy indexing raises error
      with pytest.raises(ValueError):
          fileslice(fobj, (np.array([1]),), (2, 3, 4), arr.dtype)
  
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 26 for calling a global function with example usage: test_fileslice_errors() without return types