code: def test__flag_jumps_single_col_raises_error_for_bad_scale_type(
      timeseries_dataframe,
  ):
      """Test that invalid scale argument raises a JanitorError."""
      # Setup
      df = timeseries_dataframe
      expected_error_msg = (
          "Unrecognized scale: 'bad_scale'. "
          + "Must be one of: ['absolute', 'percentage']."
      )
  
      # Exercise
      with pytest.raises(JanitorError) as error_info:
          _flag_jumps_single_col(
              df,
              col="col1",
              scale="bad_scale",
              direction="any",
              threshold=1,
          )
  
      # Verify
      assert str(error_info.value) == expected_error_msg
  
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 2 for calling a global function with example usage: test__flag_jumps_single_col_raises_error_for_bad_scale_type(timeseries_dataframe) without return types