code: def test_w_parameter_distributions(self) -> None:
      rss = get_robust_search_space(use_discrete=True)
      # pyre-fixme[16]: `Parameter` has no attribute `set_logit_scale`.
      rss.parameters["y"].set_logit_scale(True)
      # Transform a non-distributional parameter.
      t = Logit(
          search_space=rss,
          observations=[],
      )
      t.transform_search_space(rss)
      # pyre-fixme[16]: Optional type has no attribute `logit_scale`.
      self.assertFalse(rss.parameters.get("y").logit_scale)
      # Error with distributional parameter.
      rss.parameters["x"].set_logit_scale(True)
      t = Logit(
          search_space=rss,
          observations=[],
      )
      with self.assertRaisesRegex(
          UnsupportedError, "transform is not supported"
      ):
          t.transform_search_space(rss)
  
file_path: Ax/ax/modelbridge/transforms/tests/test_logit_transform.py
imports: from copy import deepcopy
  from ax.core.observation import ObservationFeatures
  from ax.core.parameter import ChoiceParameter, ParameterType, RangeParameter
  from ax.core.search_space import SearchSpace
  from ax.exceptions.core import UnsupportedError, UserInputError
  from ax.modelbridge.transforms.logit import Logit
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_robust_search_space
  from scipy.special import expit, logit
label_desc: Use image node_id 7 for calling the LogitTransformTest obj's underlying member method code with example usage: obj.test_w_parameter_distributions() without return types