code: def test_summary_transformer_incorrect_quantile_raises_error(
      quantile_arg,
  ):
      """Test if correct errors are raised for invalid quantiles input."""
      msg = """`quantiles` must be None, int, float or a list or tuple made up of
            int and float values that are between 0 and 1.
            """
      with pytest.raises(ValueError, match=msg):
          transformer = SummaryTransformer(
              summary_function="mean", quantiles=quantile_arg
          )
          transformer.fit_transform(data_to_test[0])
  
file_path: sktime/sktime/transformations/series/tests/test_summarize.py
imports: import re
  import numpy
  import pandas
  import pytest
  from sktime.transformations.series.summarize import ALLOWED_SUM_FUNCS, SummaryTransformer
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 3 for calling a global function with example usage: test_summary_transformer_incorrect_quantile_raises_error(quantile_arg) without return types