code: def test_raises_context_manager_with_kwargs(self):
      with pytest.raises(TypeError) as excinfo:
          with pytest.raises(Exception, foo="bar"):  # type: ignore[call-overload]
              pass
      assert "Unexpected keyword arguments" in str(excinfo.value)
  
imports: import re
  import sys
  import pytest
  from _pytest.outcomes import Failed
  from _pytest.pytester import Pytester
label_desc: Use image node_id 23 for calling the TestRaises obj's underlying member method code with example usage: obj.test_raises_context_manager_with_kwargs() without return types