code: def _get_np_fun_to_wrap(name, ns_prefix):
      for pre, mod, subs in (
          (_NP_OP_PREFIX, "numpy", _NP_OP_SUBMODULE_LIST),
          (
              _NP_EXT_OP_PREFIX,
              "numpy_extension",
              _NP_EXT_OP_SUBMODULE_LIST,
          ),
          (_NP_INTERNAL_OP_PREFIX, "numpy._internal", []),
      ):
          if name.startswith(pre):
              nm = name[len(pre) :]
              for sub in subs:
                  if nm.startswith(sub):
                      func, modules = nm[len(sub) :], [
                          sys.modules[f"{ns_prefix}.{mod}.{sub[1:-1]}"]
                      ]
                      break
              else:
                  func, modules = nm, [
                      sys.modules[f"{ns_prefix}.{mod}"]
                  ]
                  break
      else:
          assert (
              False
          ), f"Unable to find target module for {name} in {ns_prefix}"
      if (
          name.startswith(_NP_INTERNAL_OP_PREFIX)
          and ns_prefix == "mxnet.ndarray"
      ):
          if hasattr(ndarray.numpy._api_internal, func):
              modules.append(ndarray.numpy._api_internal)
      return func, modules
  
imports: from array import array
  import ctypes
  import inspect
  import logging
  import contextlib
  import sys
  import numpy
  from mxnet import numpy
  from ..None import symbol
  from ..device import gpu
  from ..symbol import Symbol
  from ..symbol import contrib
  from ..None import ndarray
  from ..ndarray import NDArray, dtype_np_to_mx, get_dtype_type, get_dtype_name, bfloat16
  from .None import lists
  from ..gluon import Block, HybridBlock, trainer
  from ..None import base
  from ..base import _NP_OP_PREFIX, _NP_OP_SUBMODULE_LIST, _NP_EXT_OP_PREFIX, _NP_EXT_OP_SUBMODULE_LIST, _NP_INTERNAL_OP_PREFIX, c_str_array, c_str, c_array_buf, SymbolHandle, check_call, _LIB
  from ..None import optimizer
  from .loss_scaler import LossScaler
  from ..operator import get_all_registered_operators_grouped
  from ..util import wrap_ctx_to_device_func
label_desc: Use image node_id 3 for calling a global function with example usage: _get_np_fun_to_wrap(name, ns_prefix) and returns: func,  modules