code: def _custom_formatwarning(
      message: Union[str, Warning],
      category: Type[Warning],
      filename: str,
      lineno: int,
      line: Union[str, None] = None,
  ) -> str:
      # ignore everything except the message
      return f"{bcolors.WARNING}{message}{bcolors.WARNING}\n"
  
imports: import copy
  import warnings
  from typing import Type, Union
label_desc: Use image node_id 1 for calling a global function with example usage: _custom_formatwarning(message, category, filename, lineno, line) and returns: bcolors, message, bcolors, str