code: def get_dump(stage: "Stage", **kwargs):
      return {
          key: value
          for key, value in {
              stage.PARAM_DESC: stage.desc,
              stage.PARAM_MD5: stage.md5,
              stage.PARAM_CMD: stage.cmd,
              stage.PARAM_WDIR: resolve_wdir(stage.wdir, stage.path),
              stage.PARAM_FROZEN: stage.frozen,
              stage.PARAM_DEPS: [d.dumpd(**kwargs) for d in stage.deps],
              stage.PARAM_OUTS: [o.dumpd(**kwargs) for o in stage.outs],
              stage.PARAM_ALWAYS_CHANGED: stage.always_changed,
              stage.PARAM_META: stage.meta,
          }.items()
          if value
      }
  
imports: import os
  import pathlib
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
  from funcy import concat, first, lsplit, rpartial
  from dvc.annotations import ANNOTATION_FIELDS
  from dvc.exceptions import InvalidArgumentError
  from dvc_data.hashfile.meta import Meta
  from .exceptions import MissingDataSource, StageExternalOutputsError, StagePathNotDirectoryError, StagePathNotFoundError, StagePathOutsideError
label_desc: Use image node_id 11 for calling a global function with example usage: get_dump(stage) and returns: unknown