code: def test_warning_calls_stacklevels(warning_calls):
      bad_filters, bad_stacklevels = warning_calls
  
      msg = ""
  
      if bad_filters:
          msg += (
              "warning ignore filter should not be used, instead, use\n"
              "numpy.testing.suppress_warnings (in tests only);\n"
              "found in:\n    {}".format("\n    ".join(bad_filters))
          )
          msg += "\n\n"
  
      if bad_stacklevels:
          msg += "warnings should have an appropriate stacklevel:\n    {}".format(
              "\n    ".join(bad_stacklevels)
          )
  
      if msg:
          raise AssertionError(msg)
  
file_path: scipy/scipy/_lib/tests/test_warnings.py
imports: import os
  from pathlib import Path
  import ast
  import tokenize
  import scipy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_warning_calls_stacklevels(warning_calls) without return types