code: def test_mean():
      y = da.mean(xr.DataArray([1, 2, 3.0]))
      assert isinstance(y, da.Array)
      assert_eq(y, y)
  
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 1 for calling a global function with example usage: test_mean() without return types