code: def test_buffer_dtype_mismatch_error():
      with pytest.raises(ValueError, match="Buffer dtype mismatch"):
          ArrayDataset64(X32, y32, sample_weight32, seed=42),
  
      with pytest.raises(ValueError, match="Buffer dtype mismatch"):
          ArrayDataset32(X64, y64, sample_weight64, seed=42),
  
      for csr_container in CSR_CONTAINERS:
          X_csr32 = csr_container(X32)
          X_csr64 = csr_container(X64)
          with pytest.raises(ValueError, match="Buffer dtype mismatch"):
              CSRDataset64(
                  X_csr32.data,
                  X_csr32.indptr,
                  X_csr32.indices,
                  y32,
                  sample_weight32,
                  seed=42,
              ),
  
          with pytest.raises(ValueError, match="Buffer dtype mismatch"):
              CSRDataset32(
                  X_csr64.data,
                  X_csr64.indptr,
                  X_csr64.indices,
                  y64,
                  sample_weight64,
                  seed=42,
              ),
  
file_path: scikit-learn/sklearn/utils/tests/test_seq_dataset.py
imports: from itertools import product
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from sklearn.datasets import load_iris
  from sklearn.utils._seq_dataset import ArrayDataset32, ArrayDataset64, CSRDataset32, CSRDataset64
  from sklearn.utils._testing import assert_allclose
  from sklearn.utils.fixes import CSR_CONTAINERS
label_desc: Use image node_id 10 for calling a global function with example usage: test_buffer_dtype_mismatch_error() without return types