code: def flatten_dict(
      dictionary: Dict[str, Any], parent_key: str = "", sep: str = "-"
  ) -> Dict[str, Any]:
      """Flatten a nested dictionary, joining keys using a specified separator.
  
      :param dictionary: The dictionary to flatten.
      :param parent_key: The base key to prepend to each key.
      :param sep: The separator to use when joining keys.
      :return: A flattened dictionary.
      """
      flattened_dict = {}
      for key, value in dictionary.items():
          new_key = f"{parent_key}{sep}{key}" if parent_key else key
          if isinstance(value, dict):
              flattened_dict.update(
                  flatten_dict(value, new_key, sep=sep)
              )
          else:
              flattened_dict[new_key] = value
      return flattened_dict
  
file_path: wandb/wandb/integration/cohere/resolver.py
imports: import logging
  from datetime import datetime
  from typing import Any, Dict, List, Optional, Sequence, Tuple
  import wandb
  from wandb.sdk.integration_utils.auto_logging import Response
  from wandb.sdk.lib.runid import generate_id
label_desc: Use image node_id 3 for calling a global function with example usage: flatten_dict(dictionary, parent_key, sep) and returns: flattened_dict