code: def raise_deprecation_warning(
      message: str = "",
      logger: logging.Logger = get_logger("main_logger"),
  ):
      """
      Raises a DeprecationWarning.
  
      Parameters
      ----------
      message
          The message of the ValueError.
      logger
          The logger instance to log the error message if 'condition' is False.
  
      Raises
      ------
      Warning
          DeprecationWarning
      """
  
      logger.warning("DeprecationWarning: " + message)
  
file_path: darts/darts/logging.py
imports: import logging
  import os
  import time
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: raise_deprecation_warning(message, logger) without return types