code: def _get_supported_calendar(ts_freq, DUMMIES):
      rank = DUMMIES.loc[
          DUMMIES["ts_frequency"] == ts_freq, "rank"
      ].max()
      matches = DUMMIES.loc[DUMMIES["rank"] <= rank]
      if matches.shape[0] == 0:
          raise ValueError("Seasonality or Frequency not supported")
      return matches
  
file_path: sktime/sktime/transformations/series/date.py
imports: import warnings
  import numpy
  import pandas
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 5 for calling a global function with example usage: _get_supported_calendar(ts_freq, DUMMIES) and returns: matches