code: def test_PrintDeprecationWarning(self) -> None:
      warnings.simplefilter("always", DeprecationWarning)
      with warnings.catch_warnings(record=True) as ws:
          Winsorize(
              search_space=None,
              observations=deepcopy(self.observations),
              config={"winsorization_upper": 0.2},
          )
          self.assertTrue(
              "Winsorization received an out-of-date `transform_config`, containing "
              "the following deprecated keys: {'winsorization_upper'}. Please "
              "update the config according to the docs of "
              "`ax.modelbridge.transforms.winsorize.Winsorize`."
              in [str(w.message) for w in ws]
          )
  
file_path: Ax/ax/modelbridge/transforms/tests/test_winsorize_legacy_transform.py
imports: import warnings
  from copy import deepcopy
  import numpy
  from ax.core.observation import Observation, ObservationData, ObservationFeatures
  from ax.exceptions.core import DataRequiredError
  from ax.modelbridge.transforms.winsorize import Winsorize
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 2 for calling the WinsorizeTransformTestLegacy obj's underlying member method code with example usage: obj.test_PrintDeprecationWarning() without return types