code: def _formatwarnmsg(msg):
      """Function to format a warning the standard way."""
      try:
          fw = formatwarning
      except NameError:
          pass
      else:
          if fw is not _formatwarning_orig:
              # warnings.formatwarning() was replaced
              return fw(
                  msg.message,
                  msg.category,
                  msg.filename,
                  msg.lineno,
                  msg.line,
              )
      return _formatwarnmsg_impl(msg)
  
imports: import sys
label_desc: Use image node_id 6 for calling a global function with example usage: _formatwarnmsg(msg) and returns: _formatwarnmsg_impl, fw