code: def _check_params(
      index: pd.DatetimeIndex,
      calendar: Dict[date, str],
      holiday_windows: Dict[str, tuple],
      include_bridge_days: bool,
      include_weekend: bool,
      return_dummies: bool,
      return_categorical: bool,
      return_indicator: bool,
      keep_original_columns: bool,
  ):
      """Check input params.
  
      Parameters
      ----------
      index : pd.DatetimeIndex
      calendar : Dict[date, str],
      include_bridge_days: bool
      include_weekend: bool
      holiday_windows : Dict[str, tuple]
      return_dummies : bool
      return_categorical : bool
      return_indicator : bool
      keep_original_columns : bool
      """
      from holidays import HolidayBase
  
      # Input checks.
      if not isinstance(index, pd.DatetimeIndex):
          raise ValueError(
              f"Time index must be of type pd.DatetimeIndex, but found: {type(index)}"
          )
      if not isinstance(calendar, HolidayBase) and not isinstance(
          calendar, dict
      ):
          raise ValueError(
              f"calendar must be either of type HolidayBase from the `holidays` package, "
              f" or a dict, but found: {type(calendar)}."
          )
      if not isinstance(return_dummies, bool):
          raise ValueError(
              f"`return_dummies` must be a boolean, but found: {return_dummies}"
          )
      if not isinstance(return_categorical, bool):
          raise ValueError(
              f"`return_categorical` must be a boolean, but found: {return_categorical}"
          )
      if not isinstance(return_indicator, bool):
          raise ValueError(
              f"`return_indicator` must be a boolean, but found: {return_indicator}"
          )
      if not isinstance(include_bridge_days, bool):
          raise ValueError(
              f"`include_bridge_days` must be a boolean, but found: {include_bridge_days}"
          )
      if not isinstance(include_weekend, bool):
          raise ValueError(
              f"`include_weekend` must be a boolean, but found: {include_weekend}"
          )
      if not isinstance(keep_original_columns, bool):
          raise ValueError(
              f"`keep_original_columns` must be boolean,"
              f"but found; {keep_original_columns}"
          )
      if not (return_dummies or return_categorical or return_indicator):
          raise ValueError(
              "One of `return_dummies`, `return_categorical` and `return_indicator` "
              "must be set to True."
          )
      if not isinstance(calendar, HolidayBase) and isinstance(
          calendar, dict
      ):
          _check_calendar(calendar)
  
      if holiday_windows is not None:
          _check_holiday_windows(holiday_windows)
  
file_path: sktime/sktime/transformations/series/holiday/_holidayfeats.py
imports: import datetime
  from collections import defaultdict
  from datetime import date
  from typing import Dict
  import numpy
  import pandas
  from sktime.transformations.base import BaseTransformer
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 2 for calling a global function with example usage: _check_params(index, calendar, holiday_windows, include_bridge_days, include_weekend, return_dummies, return_categorical, return_indicator, keep_original_columns) without return types