code: def test_unregistered_func(func):
      # Wrap a procol-based encapsulated ndarray
      x = EncapsulateNDArray(np.random.default_rng().random((100, 100)))
  
      # See if Dask holds the array fine
      y = da.from_array(x, chunks=(50, 50))
  
      # Check if it's an equivalent array
      assert_eq(x, y, check_meta=False, check_type=False)
  
      # Perform two NumPy functions, one on the
      # Encapsulated array
      xx = func(x)
  
      # And one on the Dask array holding these
      # encapsulated arrays
      yy = func(y)
  
      # Check that they are equivalent arrays.
      assert_eq(xx, yy, check_meta=False, check_type=False)
  
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 8 for calling a global function with example usage: test_unregistered_func(func) without return types