code: def test_preprocessing_dtype_regression(self):
      # Dense
      # np.float32
      X_train, Y_train, X_test, Y_test = get_dataset("boston")
      self.assertEqual(X_train.dtype, np.float32)
  
      dataset_properties = {"target_type": "regression"}
  
      configuration_space = (
          SelectRegressionRates.get_hyperparameter_search_space(
              dataset_properties
          )
      )
      default = configuration_space.get_default_configuration()
      preprocessor = SelectRegressionRates(
          random_state=1,
          **{hp_name: default[hp_name] for hp_name in default},
      )
      preprocessor.fit(X_train, Y_train)
      Xt = preprocessor.transform(X_train)
      self.assertEqual(Xt.dtype, np.float32)
  
      # np.float64
      X_train, Y_train, X_test, Y_test = get_dataset("boston")
      X_train = X_train.astype(np.float64)
      configuration_space = (
          SelectRegressionRates.get_hyperparameter_search_space(
              dataset_properties
          )
      )
      default = configuration_space.get_default_configuration()
      preprocessor = SelectRegressionRates(
          random_state=1,
          **{hp_name: default[hp_name] for hp_name in default},
      )
      preprocessor.fit(X_train, Y_train)
      Xt = preprocessor.transform(X_train)
      self.assertEqual(Xt.dtype, np.float64)
  
file_path: auto-sklearn/test/test_pipeline/components/feature_preprocessing/test_select_rates_regression.py
imports: import numpy
  import scipy.sparse
  import sklearn.preprocessing
  from autosklearn.pipeline.components.feature_preprocessing.select_rates_regression import SelectRegressionRates
  from autosklearn.pipeline.util import _test_preprocessing, get_dataset
  import unittest
label_desc: Use image node_id 3 for calling the SelectRegressionRatesComponentTest obj's underlying member method code with example usage: obj.test_preprocessing_dtype_regression() without return types