code: def test_reductions_0D():
      x = np.int_(3)  # np.int_ has a dtype attribute, np.int does not.
      a = da.from_array(x, chunks=(1,))
  
      reduction_0d_test(da.sum, a, np.sum, x)
      reduction_0d_test(da.prod, a, np.prod, x)
      reduction_0d_test(da.mean, a, np.mean, x)
      reduction_0d_test(da.var, a, np.var, x)
      reduction_0d_test(da.std, a, np.std, x)
      reduction_0d_test(da.min, a, np.min, x)
      reduction_0d_test(da.max, a, np.max, x)
      reduction_0d_test(da.any, a, np.any, x)
      reduction_0d_test(da.all, a, np.all, x)
  
      reduction_0d_test(da.nansum, a, np.nansum, x)
      reduction_0d_test(da.nanprod, a, np.nanprod, x)
      reduction_0d_test(da.nanmean, a, np.mean, x)
      reduction_0d_test(da.nanvar, a, np.var, x)
      reduction_0d_test(da.nanstd, a, np.std, x)
      reduction_0d_test(da.nanmin, a, np.nanmin, x)
      reduction_0d_test(da.nanmax, a, np.nanmax, x)
  
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 3 for calling a global function with example usage: test_reductions_0D() without return types