code: def _find_logging_config(config: dict[Any, Any]) -> dict[Any, Any]:
      """
      Look for the dictionary containing logging-specific configurations,
      starting in the 'distributed' dictionary and then trying the top-level
      """
      logging_keys = {"logging-file-config", "logging"}
      if logging_keys & config.get("distributed", {}).keys():
          return config["distributed"]
      else:
          return config
  
file_path: distributed/distributed/config.py
imports: from __future__ import annotations
  import asyncio
  import logging.config
  import os
  import sys
  from collections.abc import Callable
  from typing import Any
  import yaml
  import dask
  from dask.utils import import_required
label_desc: Use image node_id 4 for calling a global function with example usage: _find_logging_config(config) and returns: config, config