code: def test_numpy_namespace():
      # None of these objects are publicly documented to be part of the main
      # NumPy namespace (some are useful though, others need to be cleaned up)
      undocumented = {
          "_add_newdoc_ufunc": "_multiarray_umath._add_newdoc_ufunc",
          "add_docstring": "_multiarray_umath.add_docstring",
          "add_newdoc": "numpy.core.function_base.add_newdoc",
          "add_newdoc_ufunc": "_multiarray_umath._add_newdoc_ufunc",
          "byte_bounds": "numpy.lib.utils.byte_bounds",
          "compare_chararrays": "_multiarray_umath.compare_chararrays",
          "deprecate": "numpy.lib.utils.deprecate",
          "deprecate_with_doc": "numpy.lib.utils.deprecate_with_doc",
          "disp": "numpy.lib.function_base.disp",
          "fastCopyAndTranspose": "_multiarray_umath.fastCopyAndTranspose",
          "get_array_wrap": "numpy.lib.shape_base.get_array_wrap",
          "get_include": "numpy.lib.utils.get_include",
          "recfromcsv": "numpy.lib.npyio.recfromcsv",
          "recfromtxt": "numpy.lib.npyio.recfromtxt",
          "safe_eval": "numpy.lib.utils.safe_eval",
          "set_string_function": "numpy.core.arrayprint.set_string_function",
          "show_config": "numpy.__config__.show",
          "show_runtime": "numpy.lib.utils.show_runtime",
          "who": "numpy.lib.utils.who",
      }
      # We override dir to not show these members
      allowlist = undocumented
      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 warnings
  import numpy
  import numpy
  import pytest
  from numpy.testing import IS_WASM
label_desc: Use image node_id 2 for calling a global function with example usage: test_numpy_namespace() without return types