code: def log_message(message, level=LoggingLevelEnum.INFO):
      """Adds a message to logger.
  
      Parameters
      ----------
      message : `any`
          The message to be added to logger.
      level : `Enum`
          One of the levels in the `~greykite.common.enums.LoggingLevelEnum`.
      """
      if level.name not in list(LoggingLevelEnum.__members__):
          raise ValueError(
              f"{level} not found, it must be a member of the LoggingLevelEnum class."
          )
      logger.log(level.value, message)
  
file_path: greykite/greykite/common/logging.py
imports: import logging
  import sys
  from enum import Enum
  import numpy
  import six
  from greykite.common.constants import LOGGER_NAME
label_desc: Use image node_id 2 for calling a global function with example usage: log_message(message, level) without return types