code: def configure_logging():
      mindsdb_level = os.environ.get("MINDSDB_LOG_LEVEL", None)
      if mindsdb_level is not None:
          mindsdb_level = getattr(logging, mindsdb_level)
      else:
          mindsdb_level = logging.INFO
  
      logging_config = dict(
          version=1,
          formatters={"f": {"()": ColorFormatter}},
          handlers={
              "console": {
                  "class": "logging.StreamHandler",
                  "formatter": "f",
              }
          },
          loggers={
              "": {  # root logger
                  "handlers": ["console"],
                  "level": logging.WARNING,
              },
              "__main__": {
                  "level": mindsdb_level,
              },
              "mindsdb": {
                  "level": mindsdb_level,
              },
              "alembic": {
                  "level": logging.DEBUG,
              },
          },
      )
      dictConfig(logging_config)
  
imports: import logging
  import os
  from logging.config import dictConfig
label_desc: Use image node_id 1 for calling a global function with example usage: configure_logging() without return types