code: def test_numpy_namespace():
      # We override dir to not show these members
      allowlist = {
          "recarray": "numpy.rec.recarray",
          "show_config": "numpy.__config__.show",
      }
      bad_results = check_dir(np)
      # pytest gives better error messages with the builtin assert than with
      # assert_equal
      assert bad_results == allowlist
  
imports: import sys
  import sysconfig
  import subprocess
  import pkgutil
  import types
  import importlib
  import inspect
  import warnings
  import numpy
  import numpy
  from numpy.testing import IS_WASM
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_numpy_namespace() without return types