code: def test_include_weekend(calendar):
      """Tests include_weekend param."""
      X = pd.DataFrame(
          {"values": np.arange(1, 6)},
          index=pd.date_range("2022-05-01", periods=5, freq="D"),
      )
      trafo_iw = HolidayFeatures(
          calendar=calendar,
          return_indicator=True,
          include_weekend=True,
          return_dummies=False,
      )
      X_trafo_iw = trafo_iw.fit_transform(X).astype(np.int32)
      expected_iw = pd.DataFrame(
          {"is_holiday": np.int32([1, 1, 0, 0, 0])}, index=X.index
      )
      assert_frame_equal(X_trafo_iw, expected_iw)
  
file_path: sktime/sktime/transformations/series/holiday/tests/test_holidays.py
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
  from sktime.transformations.series.holiday._holidayfeats import HolidayFeatures
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 6 for calling a global function with example usage: test_include_weekend(calendar) without return types