code: def test_warns_many_warnings():
      with warns(UserWarning):
          warnings.warn("this is the warning message", UserWarning)
          warnings.warn(
              "this is the other warning message", UserWarning
          )
  
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 12 for calling a global function with example usage: test_warns_many_warnings() without return types