code: def prepare_stages_data(
      stages: Iterable["Stage"],
      description: bool = True,
      max_length: int = MAX_TEXT_LENGTH,
  ) -> Dict[str, str]:
      return {
          stage.addressing: (
              prepare_description(stage, max_length=max_length)
              if description
              else ""
          )
          for stage in stages
      }
  
imports: import argparse
  import logging
  from contextlib import contextmanager
  from itertools import chain, filterfalse
  from typing import TYPE_CHECKING, Dict, Iterable, List
  from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
  from dvc.utils.cli_parse import parse_params
  from dvc.utils.humanize import truncate_text
label_desc: Use image node_id 3 for calling a global function with example usage: prepare_stages_data(stages, description, max_length) and returns: unknown