code: def test_default_1D():
      """Test with default parameters and 1D input array."""
      X = np.array(
          [
              -7.207066,
              -5.722571,
              -4.915559,
              -8.345698,
              -5.570875,
              -5.493944,
              -6.574740,
              -6.546632,
              -6.564452,
              -6.890038,
              -6.477193,
              -6.998386,
              -6.776254,
              -5.935541,
              -5.040506,
              0.000000,
              5.889715,
              5.488990,
              5.088805,
              5.162828,
              8.415835,
              6.134088,
              5.509314,
              5.559452,
              6.459589,
              5.306280,
              4.551795,
              6.574756,
              4.976344,
              5.984862,
              5.064051,
              7.102298,
          ]
      )
  
      y_expected = np.array(
          [
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              True,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
              False,
          ]
      )
  
      scaler = MinMaxScaler()
      X = scaler.fit_transform(X.reshape(-1, 1))
      model = STRAY()
      y_actual = model.fit_transform(X)
      assert np.allclose(y_actual, y_expected)
  
file_path: sktime/sktime/annotation/tests/test_stray.py
imports: import numpy
  from sklearn.preprocessing import MinMaxScaler, RobustScaler
  from sktime.annotation.stray import STRAY
label_desc: Use image node_id 1 for calling a global function with example usage: test_default_1D() without return types