code: def test_core_shims_coherence():
      """
      Check that all "semi-public" members of `numpy._core` are also accessible
      from `numpy.core` shims.
      """
      import numpy.core as core
  
      for member_name in dir(np._core):
          # Skip private and test members. Also if a module is aliased,
          # no need to add it to np.core
          if (
              member_name.startswith("_")
              or member_name == "tests"
              or f"numpy.{member_name}" in PUBLIC_ALIASED_MODULES
          ):
              continue
  
          member = getattr(np._core, member_name)
  
          # np.core is a shim and all submodules of np.core are shims
          # but we should be able to import everything in those shims
          # that are available in the "real" modules in np._core
          if inspect.ismodule(member):
              submodule = member
              submodule_name = member_name
              for submodule_member_name in dir(submodule):
                  # ignore dunder names
                  if submodule_member_name.startswith("__"):
                      continue
                  submodule_member = getattr(
                      submodule, submodule_member_name
                  )
  
                  core_submodule = __import__(
                      f"numpy.core.{submodule_name}",
                      fromlist=[submodule_member_name],
                  )
  
                  assert submodule_member is getattr(
                      core_submodule, submodule_member_name
                  )
  
          else:
              assert member is getattr(core, member_name)
  
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 14 for calling a global function with example usage: test_core_shims_coherence() without return types