code: def test_full_reimport():
      """At the time of writing this, it is *not* truly supported, but
      apparently enough users rely on it, for it to be an annoying change
      when it started failing previously.
      """
      # Test within a new process, to ensure that we do not mess with the
      # global state during the test run (could lead to cryptic test failures).
      # This is generally unsafe, especially, since we also reload the C-modules.
      code = textwrap.dedent(
          r"""
          import sys
          from pytest import warns
          import numpy as np
  
          for k in list(sys.modules.keys()):
              if "numpy" in k:
                  del sys.modules[k]
  
          with warns(UserWarning):
              import numpy as np
          """
      )
      p = subprocess.run(
          [sys.executable, "-c", code], capture_output=True
      )
      if p.returncode:
          raise AssertionError(
              f"Non-zero return code: {p.returncode!r}\n\n{p.stderr.decode()}"
          )
  
file_path: catboost/contrib/python/numpy/py3/numpy/tests/test_reloading.py
imports: from numpy.testing import assert_raises, assert_warns, assert_, assert_equal, IS_WASM
  from numpy.compat import pickle
  import pytest
  import sys
  import subprocess
  import textwrap
  from importlib import reload
label_desc: Use image node_id 3 for calling a global function with example usage: test_full_reimport() without return types