code: def setup_logging(
      level: int | Path | Literal[False] | None = False,
  ) -> None:
      """Sets up the logging configuration for all modules.
  
      Parameters
      ----------
      level : int | Path | Literal[False] | None, defaults to None
          An integer representing the logging level. An custom logging configuration can be used when passing a path.
          If False, no logging setup is performed.
      """
      if level is False:
          return
  
      if isinstance(level, Path):
          log_filename = level
      else:
          path = Path() / smac.__file__
          log_filename = path.parent / "logging.yml"
  
      with (log_filename).open("r") as stream:
          config = yaml.safe_load(stream)
  
      if isinstance(level, int):
          config["root"]["level"] = level
          config["handlers"]["console"]["level"] = level
  
      logging.config.dictConfig(config)
  
file_path: SMAC3/smac/utils/logging.py
imports: from __future__ import annotations
  import logging
  import logging.config
  from pathlib import Path
  import yaml
  from typing_extensions import Literal
  import smac
label_desc: Use image node_id 1 for calling a global function with example usage: setup_logging(level) without return types