code: def test_ignore_does_not_raise_without_warning():
      with warnings.catch_warnings(record=True) as w:
          with ignore_warnings(UserWarning):
              pass
          assert len(w) == 0
  
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 22 for calling a global function with example usage: test_ignore_does_not_raise_without_warning() without return types