code: def test_fft():
      # Regression test for https://github.com/dask/dask/issues/9679
      coord = da.arange(8, chunks=-1)
      data = da.random.random((8, 8), chunks=-1) + 1
      x = xr.DataArray(
          data, coords={"x": coord, "y": coord}, dims=["x", "y"]
      )
      result = da.fft.fft(x)
      expected = da.fft.fft(x.data)
      assert_eq(result, expected)
  
file_path: dask/dask/array/tests/test_xarray.py
imports: from __future__ import annotations
  import pytest
  import dask.array
  from dask.array.utils import assert_eq
label_desc: Use image node_id 5 for calling a global function with example usage: test_fft() without return types