code: def test_non_existent_func():
      # Regression test for __array_function__ becoming default in numpy 1.17
      # dask has no sort function, so ensure that this still calls np.sort
      x = da.from_array(np.array([1, 2, 4, 3]), chunks=(2,))
      with pytest.warns(
          FutureWarning,
          match="The `numpy.sort` function is not implemented by Dask",
      ):
          assert list(np.sort(x)) == [1, 2, 3, 4]
  
file_path: dask/dask/array/tests/test_array_function.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.tests.test_dispatch import EncapsulateNDArray, WrappedArray
  from dask.array.utils import assert_eq
label_desc: Use image node_id 9 for calling a global function with example usage: test_non_existent_func() without return types