code: def test_check_seasonality(self):
      pd_series = pd.Series(
          range(50), index=pd.date_range("20130101", "20130219")
      )
      pd_series = pd_series.map(
          lambda x: np.sin(x * np.pi / 3 + np.pi / 2)
      )
      series = TimeSeries.from_series(pd_series)
  
      assert (True, 6) == check_seasonality(series)
      assert (False, 3) == check_seasonality(series, m=3)
  
      with pytest.raises(AssertionError):
          check_seasonality(series.stack(series))
  
file_path: darts/darts/tests/utils/test_statistics.py
imports: import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.datasets import AirPassengersDataset
  from darts.utils.statistics import check_seasonality, extract_trend_and_seasonality, granger_causality_tests, plot_pacf, plot_residuals_analysis, remove_seasonality, remove_trend, stationarity_test_adf, stationarity_test_kpss, stationarity_tests
  from darts.utils.timeseries_generation import constant_timeseries, gaussian_timeseries, linear_timeseries
  from darts.utils.utils import ModelMode, SeasonalityMode
label_desc: Use image node_id 1 for calling the TestTimeSeries obj's underlying member method code with example usage: obj.test_check_seasonality() without return types