code: def test__flag_jumps_single_col_percentage_scale_correct_direction(
      timeseries_dataframe, col, direction, expected
  ):
      """
      Test utility function for flagging jumps with percentage scale and
      a 25% jump. Here, the correct/anticipated `direction` is provided
      (i.e. increasing when the df column is truly increasing and
      decreasing when the df column is truly decreasing).
      """
      # Setup
      df = timeseries_dataframe
  
      # Exercise
      result = _flag_jumps_single_col(
          df,
          col,
          scale="percentage",
          direction=direction,
          threshold=0.25,
      )
  
      # Verify
      np.testing.assert_array_equal(result.array, expected)
  
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 9 for calling a global function with example usage: test__flag_jumps_single_col_percentage_scale_correct_direction(timeseries_dataframe, col, direction, expected) without return types