code: def test_wrong_power_type_raises_error(power_transformer, _power):
      y = _make_series(n_timepoints=75)
  
      # Test input types
      match = f"Expected `power` to be int or float, but found {type(_power)}."
      with pytest.raises(ValueError, match=match):
          transformer = power_transformer(power=_power)
          transformer.fit(y)
  
imports: import pytest
  from sktime.transformations.series.exponent import ExponentTransformer, SqrtTransformer
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 2 for calling a global function with example usage: test_wrong_power_type_raises_error(power_transformer, _power) without return types