code: def test_take_invalid_kwargs(self):
      idx = date_range("2011-01-01", "2011-01-31", freq="D", name="idx")
      indices = [1, 6, 5, 9, 10, 13, 15, 3]
  
      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: from datetime import date, datetime, time, timedelta
  import numpy
  import pytest
  from pandas._libs import index
  from pandas.compat.numpy import np_long
  import pandas
  from pandas import DatetimeIndex, Index, Timestamp, bdate_range, date_range, notna
  import pandas._testing
  from pandas.tseries.frequencies import to_offset
label_desc: Use image node_id 4 for calling the TestTake obj's underlying member method code with example usage: obj.test_take_invalid_kwargs() without return types