code: def test_dtype_preprocess_data(setup):
      n_samples = 200
      n_features = 2
      X = rng.rand(n_samples, n_features)
      y = rng.rand(n_samples)
  
      X_32 = np.asarray(X, dtype=np.float32)
      y_32 = np.asarray(y, dtype=np.float32)
      X_64 = np.asarray(X, dtype=np.float64)
      y_64 = np.asarray(y, dtype=np.float64)
  
      for fit_intercept in [True, False]:
          for normalize in [True, False]:
              (
                  Xt_32,
                  yt_32,
                  X_mean_32,
                  y_mean_32,
                  X_norm_32,
              ) = _preprocess_data(
                  X_32,
                  y_32,
                  fit_intercept=fit_intercept,
                  normalize=normalize,
                  return_mean=True,
              )
  
              (
                  Xt_64,
                  yt_64,
                  X_mean_64,
                  y_mean_64,
                  X_norm_64,
              ) = _preprocess_data(
                  X_64,
                  y_64,
                  fit_intercept=fit_intercept,
                  normalize=normalize,
                  return_mean=True,
              )
  
              (
                  Xt_3264,
                  yt_3264,
                  X_mean_3264,
                  y_mean_3264,
                  X_norm_3264,
              ) = _preprocess_data(
                  X_32,
                  y_64,
                  fit_intercept=fit_intercept,
                  normalize=normalize,
                  return_mean=True,
              )
  
              (
                  Xt_6432,
                  yt_6432,
                  X_mean_6432,
                  y_mean_6432,
                  X_norm_6432,
              ) = _preprocess_data(
                  X_64,
                  y_32,
                  fit_intercept=fit_intercept,
                  normalize=normalize,
                  return_mean=True,
              )
  
              assert Xt_32.dtype == np.float32
              assert yt_32.dtype == np.float32
              assert X_mean_32.dtype == np.float32
              assert y_mean_32.dtype == np.float32
              assert X_norm_32.dtype == np.float32
  
              assert Xt_64.dtype == np.float64
              assert yt_64.dtype == np.float64
              assert X_mean_64.dtype == np.float64
              assert y_mean_64.dtype == np.float64
              assert X_norm_64.dtype == np.float64
  
              assert Xt_3264.dtype == np.float32
              assert yt_3264.dtype == np.float32
              assert X_mean_3264.dtype == np.float32
              assert y_mean_3264.dtype == np.float32
              assert X_norm_3264.dtype == np.float32
  
              assert Xt_6432.dtype == np.float64
              assert yt_6432.dtype == np.float64
              assert X_mean_6432.dtype == np.float64
              assert y_mean_6432.dtype == np.float64
              assert X_norm_6432.dtype == np.float64
  
              assert X_32.dtype == np.float32
              assert y_32.dtype == np.float32
              assert X_64.dtype == np.float64
              assert y_64.dtype == np.float64
  
              assert_array_almost_equal(Xt_32, Xt_64)
              assert_array_almost_equal(yt_32, yt_64)
              assert_array_almost_equal(X_mean_32, X_mean_64)
              assert_array_almost_equal(y_mean_32, y_mean_64)
              assert_array_almost_equal(X_norm_32, X_norm_64)
  
imports: import re
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_almost_equal, assert_allclose
  from scipy import sparse
  from scipy import linalg
  from sklearn.datasets import make_sparse_uncorrelated, make_regression, load_iris
  from sklearn.linear_model import LinearRegression
  from sklearn.linear_model._base import make_dataset
  from sklearn.utils import check_random_state
  from ..None import LinearRegression
  from .._base import _preprocess_data, _rescale_data
label_desc: Use image node_id 17 for calling a global function with example usage: test_dtype_preprocess_data(setup) without return types