code: def warning_on_one_line(
      message, category, filename, lineno, file=None, line=None
  ):
      return "%s:%s: %s:\n\n%s\n\n" % (
          filename,
          lineno,
          category.__name__,
          message,
      )
  
imports: import json
  import warnings
  import os
  from plotly import exceptions, optional_imports
  from plotly.files import PLOTLY_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: warning_on_one_line(message, category, filename, lineno, file, line) and returns: unknown