code: def test_mean_func_does_not_warn():
      # non-regression test for https://github.com/pydata/xarray/issues/5151
      xr = pytest.importorskip("xarray")
      a = xr.DataArray(da.from_array(np.full((10, 10), np.nan)))
  
      with warnings.catch_warnings(record=True) as rec:
          a.mean().compute()
      assert not rec
  
imports: from __future__ import annotations
  import os
  import warnings
  from contextlib import nullcontext
  from itertools import permutations, zip_longest
  import pytest
  import itertools
  import dask.array
  import dask.config
  from dask.array.numpy_compat import ComplexWarning, _numpy_122
  from dask.array.utils import assert_eq, same_keys
  from dask.core import get_deps
label_desc: Use image node_id 42 for calling a global function with example usage: test_mean_func_does_not_warn() without return types