code: def test_flag_jumps_strict_with_both_cols_in_at_least_one_args(
      timeseries_dataframe,
  ):
      """
      Test provided strict behaves as expected
      (col4 not provided in any input arg dict thus not flagged)
      When left unspecified, a column will be flagged based on defaults
      (`scale=percentage`, `direction=any`, `threshold=0.0`).
      """
      df = timeseries_dataframe
      orig_cols = df.columns
  
      expected = np.ones((10, 4), dtype=int)
      expected[0, :] = 0
      expected[:, 3] = 0
      expected[3, 3] = 1
      expected[7, 3] = 1
      expected[9, 3] = 1
      expected_cols = [f"col{i}_jump_flag" for i in [1, 2, 3, 5]]
      expected_df = pd.DataFrame(
          expected, columns=expected_cols, index=df.index
      )
  
      # Exercise
      df = df.flag_jumps(
          scale=dict(col1="absolute", col3="absolute"),
          direction=dict(col2="increasing"),
          threshold=dict(col5=2),
          strict=True,
      )
  
      # Verify
      assert list(df.columns) == list(orig_cols) + expected_cols
      assert df.filter(regex="flag").equals(expected_df)
  
imports: import numpy
  import pandas
  import pytest
  import janitor.timeseries
  from janitor.errors import JanitorError
  from janitor.timeseries import _flag_jumps_single_col
label_desc: Use image node_id 18 for calling a global function with example usage: test_flag_jumps_strict_with_both_cols_in_at_least_one_args(timeseries_dataframe) without return types