code: def test_invalid_freq(time_col="ts", value_col="actual"):
      # create input_df
      input_val_ls = [100] * 10 + [200] * 10 + [300] * 10
      input_ts_ls = pd.date_range(
          datetime(2020, 1, 1), freq="S", periods=30
      )
      input_df = pd.DataFrame(
          {time_col: input_ts_ls, value_col: input_val_ls}
      )
  
      # call the function
      detector = ShiftDetection()
      with pytest.raises(ValueError):
          output_regressor_col, output_df = detector.detect(
              input_df,
              time_col=time_col,
              value_col=value_col,
              forecast_horizon=5,
              freq="S",
              z_score_cutoff=3,
          )
  
file_path: greykite/greykite/tests/algo/changepoint/shift_detection/test_shift_detector.py
imports: from datetime import datetime
  import pandas
  import pytest
  from greykite.algo.changepoint.shift_detection.shift_detector import ShiftDetection
  from greykite.common.constants import LEVELSHIFT_COL_PREFIX_SHORT
label_desc: Use image node_id 3 for calling a global function with example usage: test_invalid_freq(time_col, value_col) without return types