code: def dgl_warning_format(
      message, category, filename, lineno, line=None
  ):
      """Format DGL warnings."""
      if isinstance(category, DGLWarning):
          return "DGL Warning: {}\n".format(message)
      else:
          return _default_formatwarning(
              message, category, filename, lineno, line=None
          )
  
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 3 for calling a global function with example usage: dgl_warning_format(message, category, filename, lineno, line) and returns: str, _default_formatwarning