code: def test_return_indicator(calendar):
      """Test return_indicator param."""
      X = pd.DataFrame(
          {"values": np.arange(1, 6)},
          index=pd.date_range("2022-05-01", periods=5, freq="D"),
      )
      trafo_id = HolidayFeatures(
          calendar=calendar, return_indicator=True, return_dummies=False
      )
      X_trafo_id = trafo_id.fit_transform(X).astype(np.int32)
      expected_id = pd.DataFrame(
          {"is_holiday": np.int32([0, 1, 0, 0, 0])}, index=X.index
      )
      assert_frame_equal(X_trafo_id, expected_id)
  
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 4 for calling a global function with example usage: test_return_indicator(calendar) without return types