code: def test_order_wrong_option_in_kwargs(df):
      """
      Raise ValueError if a string is provided, but is not
      one of None, 'sort', or 'appearance'.
      """
      with pytest.raises(ValueError):
          df.encode_categorical(a="sorted")
  
imports: import datetime
  import numpy
  import pandas
  import pytest
  from hypothesis import given, settings
  from pandas.testing import assert_frame_equal
  from janitor.testing_utils.strategies import categoricaldf_strategy, df_strategy
label_desc: Use image node_id 17 for calling a global function with example usage: test_order_wrong_option_in_kwargs(df) without return types