code: def test_both_column_names_kwargs(df_checks):
      """
      Raise Error if both `column_names`
      and kwargs are provided.
      """
      with pytest.raises(ValueError):
          df_checks.encode_categorical(
              column_names="region", region="sort"
          )
  
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 6 for calling a global function with example usage: test_both_column_names_kwargs(df_checks) without return types