code: def test_errstate(self):
      old = _ufunc_config.seterr(fallback_mode="print")
      before = _ufunc_config.geterr()
  
      with _ufunc_config.errstate(fallback_mode="raise"):
          inside = _ufunc_config.geterr()
          assert inside["fallback_mode"] == "raise"
  
      after = _ufunc_config.geterr()
      assert before["fallback_mode"] == after["fallback_mode"]
      _ufunc_config.seterr(**old)
  
imports: import contextlib
  import io
  import numpy
  import pytest
  from cupy import testing
  from cupyx import fallback_mode
  from cupyx import _ufunc_config
  from cupyx_tests.fallback_mode_tests import test_fallback
label_desc: Use image node_id 2 for calling the TestNotifications obj's underlying member method code with example usage: obj.test_errstate() without return types