code: def test_take_invalid_kwargs(self, frame_or_series):
      indices = [-3, 2, 0, 1]
  
      obj = DataFrame(range(5))
      obj = tm.get_obj(obj, frame_or_series)
  
      msg = r"take\(\) got an unexpected keyword argument 'foo'"
      with pytest.raises(TypeError, match=msg):
          obj.take(indices, foo=2)
  
      msg = "the 'out' parameter is not supported"
      with pytest.raises(ValueError, match=msg):
          obj.take(indices, out=indices)
  
      msg = "the 'mode' parameter is not supported"
      with pytest.raises(ValueError, match=msg):
          obj.take(indices, mode="clip")
  
imports: from copy import copy, deepcopy
  import numpy
  import pytest
  from pandas.core.dtypes.common import is_scalar
  from pandas import DataFrame, Index, Series, date_range
  import pandas._testing
label_desc: Use image node_id 13 for calling the TestNDFrame obj's underlying member method code with example usage: obj.test_take_invalid_kwargs(frame_or_series) without return types