code: def test_assert_eq_checks_dtype(a, b):
      with pytest.raises(
          AssertionError, match="a and b have different dtypes"
      ):
          assert_eq(a, b)
  
file_path: dask/dask/array/tests/test_array_utils.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.core import Array
  from dask.array.utils import assert_eq, meta_from_array
  from dask.local import get_sync
label_desc: Use image node_id 4 for calling a global function with example usage: test_assert_eq_checks_dtype(a, b) without return types