code: def test_raises_does_not_allow_none(self):
      with pytest.raises(
          ValueError, match="Expected an exception type or"
      ):
          # We're testing that this invalid usage gives a helpful error,
          # so we can ignore Mypy telling us that None is invalid.
          pytest.raises(expected_exception=None)
  
imports: import re
  import sys
  import pytest
  from _pytest.outcomes import Failed
  from _pytest.pytester import Pytester
label_desc: Use image node_id 4 for calling the TestRaises obj's underlying member method code with example usage: obj.test_raises_does_not_allow_none() without return types