code: def generate_logging_config():
      """Generate the default Ray logging configuration."""
      with logging_config_lock:
          global logger_initialized
          if logger_initialized:
              return
          logger_initialized = True
  
          formatters = {
              "plain": {
                  "format": (
                      "%(asctime)s\t%(levelname)s %(filename)s:%(lineno)s -- %(message)s"
                  ),
              },
          }
          filters = {"context_filter": {"()": ContextFilter}}
          handlers = {
              "default": {
                  "()": PlainRayHandler,
                  "formatter": "plain",
                  "filters": ["context_filter"],
              }
          }
  
          loggers = {
              # Default ray logger; any log message that gets propagated here will be
              # logged to the console. Disable propagation, as many users will use
              # basicConfig to set up a default handler. If so, logs will be
              # printed twice unless we prevent propagation here.
              "ray": {
                  "level": "INFO",
                  "handlers": ["default"],
                  "propagate": False,
              },
              # Special handling for ray.rllib: only warning-level messages passed through
              # See https://github.com/ray-project/ray/pull/31858 for related PR
              "ray.rllib": {
                  "level": "WARN",
              },
          }
  
          dictConfig(
              {
                  "version": 1,
                  "formatters": formatters,
                  "filters": filters,
                  "handlers": handlers,
                  "loggers": loggers,
                  "disable_existing_loggers": False,
              }
          )
  
file_path: ray/python/ray/_private/log.py
imports: import logging
  import re
  from logging.config import dictConfig
  import threading
  from typing import Union
label_desc: Use image node_id 3 for calling a global function with example usage: generate_logging_config() without return types