code: def test_warns_hides_other_warnings():
      with raises(RuntimeWarning):
          with warns(UserWarning):
              warnings.warn("this is the warning message", UserWarning)
              warnings.warn("this is the other message", RuntimeWarning)
  
imports: import warnings
  from sympy.testing.pytest import raises, warns, ignore_warnings, warns_deprecated_sympy, Failed
  from sympy.utilities.exceptions import sympy_deprecation_warning
label_desc: Use image node_id 10 for calling a global function with example usage: test_warns_hides_other_warnings() without return types