code: def test_transform_stats_raises_deprecation_warning(
      create_dummy_preprocessors,
  ):
      with_nothing, _, _, _, _ = create_dummy_preprocessors
  
      with pytest.raises(DeprecationWarning):
          with_nothing.transform_stats()
  
imports: import re
  import warnings
  from typing import Dict, Union
  from unittest.mock import patch
  import numpy
  import pandas
  import pyarrow
  import pytest
  import ray
  from ray.air.constants import MAX_REPR_LENGTH
  from ray.air.util.data_batch_conversion import BatchFormat
  from ray.data.preprocessor import Preprocessor
  from ray.data.preprocessors import BatchMapper, Categorizer, Chain, Concatenator, CountVectorizer, FeatureHasher, HashingVectorizer, LabelEncoder, MaxAbsScaler, MinMaxScaler, MultiHotEncoder, Normalizer, OneHotEncoder, OrdinalEncoder, PowerTransformer, RobustScaler, SimpleImputer, StandardScaler, Tokenizer
label_desc: Use image node_id 12 for calling a global function with example usage: test_transform_stats_raises_deprecation_warning(create_dummy_preprocessors) without return types