code: def test_all_modules_are_expected():
      """
      Test that we don't add anything that looks like a new public module by
      accident.  Check is based on filenames.
      """
  
      modnames = []
      for _, modname, ispkg in pkgutil.walk_packages(
          path=np.__path__, prefix=np.__name__ + ".", onerror=None
      ):
          if is_unexpected(modname) and modname not in SKIP_LIST:
              # We have a name that is new.  If that's on purpose, add it to
              # PUBLIC_MODULES.  We don't expect to have to add anything to
              # PRIVATE_BUT_PRESENT_MODULES.  Use an underscore in the name!
              modnames.append(modname)
  
      if modnames:
          raise AssertionError(f"Found unexpected modules: {modnames}")
  
imports: import sys
  import sysconfig
  import subprocess
  import pkgutil
  import types
  import importlib
  import warnings
  import numpy
  import numpy
  import pytest
  from numpy.testing import IS_WASM
label_desc: Use image node_id 9 for calling a global function with example usage: test_all_modules_are_expected() without return types