code: def dgl_warning(message, category=DGLWarning, stacklevel=2):
      """DGL warning wrapper that defaults to ``DGLWarning`` instead of ``UserWarning`` category."""
      return warnings.warn(
          message, category=category, stacklevel=stacklevel
      )
  
file_path: dgl/python/dgl/base.py
imports: from __future__ import absolute_import
  import warnings
  from ._ffi.base import DGLError
  from ._ffi.function import _init_internal_api
label_desc: Use image node_id 4 for calling a global function with example usage: dgl_warning(message, category, stacklevel) and returns: warnings