code: def test_take_invalid_kwargs(self):
      idx = CategoricalIndex([1, 2, 3], name="foo")
      indices = [1, 0, -1]
  
      msg = r"take\(\) got an unexpected keyword argument 'foo'"
      with pytest.raises(TypeError, match=msg):
          idx.take(indices, foo=2)
  
      msg = "the 'out' parameter is not supported"
      with pytest.raises(ValueError, match=msg):
          idx.take(indices, out=indices)
  
      msg = "the 'mode' parameter is not supported"
      with pytest.raises(ValueError, match=msg):
          idx.take(indices, mode="clip")
  
imports: import numpy
  import pytest
  from pandas.errors import InvalidIndexError
  import pandas
  from pandas import CategoricalIndex, Index, IntervalIndex, Timestamp
  import pandas._testing
label_desc: Use image node_id 3 for calling the TestTake obj's underlying member method code with example usage: obj.test_take_invalid_kwargs() without return types