code: def test_block_length_exception(transformer_class):
      """Tests that a Value error is raised when block_length is smaller than len(X)."""
      msg = (
          f"{transformer_class.__name__} requires that block_length"
          " is greater than the length of X"
      )
      with pytest.raises(ValueError) as ex:
          transformer = transformer_class(block_length=12)
          transformer.fit_transform(y.iloc[1:9])
  
          assert msg == 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 3 for calling a global function with example usage: test_block_length_exception(transformer_class) without return types