code: def load(path, verbose=True):
      """Loads library dynamically.
  
      Parameters
      ---------
      path : string
          Path to library .so/.dll file
  
      verbose : boolean
          defaults to True, set to False to avoid printing library info
  
      Returns
      ---------
      void
      """
      global loaded_libs
  
      # check if path exists
      if not os.path.exists(path):
          raise MXNetError(f"load path {path} does NOT exist")
      # check if path is an absolute path
      if not os.path.isabs(path):
          raise MXNetError(f"load path {path} is not an absolute path")
      # check if path is to a library file
      _, file_ext = os.path.splitext(path)
      if not file_ext in [".so", ".dll"]:
          raise MXNetError(f"load path {path} is NOT a library file")
  
      verbose_val = 1 if verbose else 0
      byt_obj = path.encode("utf-8")
      chararr = ctypes.c_char_p(byt_obj)
      lib_ptr = ctypes.c_void_p(0)
      check_call(
          _LIB.MXLoadLib(
              chararr, mx_uint(verbose_val), ctypes.byref(lib_ptr)
          )
      )
      # add library pointer to list so it can be closed later
      loaded_libs.append(MXlib(lib_ptr))
  
      # regenerate operators
      _init_op_module("mxnet", "ndarray", _make_ndarray_function)
      _init_op_module("mxnet", "symbol", _make_symbol_function)
  
      # re-register mx.nd.op into mx.nd
      mx_nd = sys.modules["mxnet.ndarray"]
      mx_nd_op = sys.modules["mxnet.ndarray.op"]
      for op in dir(mx_nd_op):
          func = getattr(mx_nd_op, op)
          setattr(mx_nd, op, func)
  
      # re-register mx.sym.op into mx.sym
      mx_sym = sys.modules["mxnet.symbol"]
      mx_sym_op = sys.modules["mxnet.symbol.op"]
      for op in dir(mx_sym_op):
          func = getattr(mx_sym_op, op)
          setattr(mx_sym, op, func)
  
file_path: mxnet/python/mxnet/library.py
imports: import ctypes
  import sys
  import os
  from .base import _LIB, check_call, MXNetError, _init_op_module, mx_uint
  from .ndarray.register import _make_ndarray_function
  from .symbol.register import _make_symbol_function
label_desc: Use image node_id 1 for calling a global function with example usage: load(path, verbose) without return types