code: def test_bootstrapping_transformer_no_seasonal_period():
      """Tests that an exception is raised if sp<2."""
      with pytest.raises(NotImplementedError) as ex:
          transformer = STLBootstrapTransformer(sp=1)
          transformer.fit(y)
  
          assert (
              "STLBootstrapTransformer does not support non-seasonal data"
              == ex.value
          )
  
file_path: sktime/sktime/transformations/bootstrap/tests/test_mbb.py
imports: import pandas
  import pytest
  from sktime.datasets import load_airline
  from sktime.transformations.bootstrap import MovingBlockBootstrapTransformer, STLBootstrapTransformer
  from sktime.transformations.bootstrap._mbb import _get_series_name, _moving_block_bootstrap
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 1 for calling a global function with example usage: test_bootstrapping_transformer_no_seasonal_period() without return types