code: def warning(message: Union[str, Warning]) -> None:
      if isinstance(message, Warning):
          message = f"{type(message).__name__}({','.join(map(repr, message.args))}"
  
      time_stamp = get_curr_time_stamp()
      warn_str = (
          text_colors["warning"]
          + text_colors["bold"]
          + "WARNING"
          + text_colors["end_color"]
      )
      print("{} - {} - {}".format(time_stamp, warn_str, message))
  
file_path: ml-cvnets/utils/logger.py
imports: import os
  import sys
  import time
  import traceback
  from typing import Optional, Union
label_desc: Use image node_id 5 for calling a global function with example usage: warning(message) without return types