code: def get_standard_metrics(
      trainer: "pl.Trainer",
  ) -> Dict[str, Union[int, str]]:
      r"""Returns the standard metrics displayed in the progress bar. Currently, it only includes the version of the
      experiment when using a logger.
  
      .. code-block::
  
          Epoch 1:   4%|▎         | 40/1095 [00:03<01:37, 10.84it/s, v_num=10]
  
      Return:
          Dictionary with the standard metrics to be displayed in the progress bar.
  
      """
      items_dict: Dict[str, Union[int, str]] = {}
      if trainer.loggers:
          from lightning.pytorch.loggers.utilities import _version
  
          if (version := _version(trainer.loggers)) not in ("", None):
              if isinstance(version, str):
                  # show last 4 places of long version strings
                  version = version[-4:]
              items_dict["v_num"] = version
  
      return items_dict
  
imports: from typing import Any, Dict, Optional, Union
  from typing_extensions import override
  import lightning.pytorch
  from lightning.pytorch.callbacks import Callback
  from lightning.pytorch.utilities.rank_zero import rank_zero_warn
label_desc: Use image node_id 1 for calling a global function with example usage: get_standard_metrics(trainer) and returns: items_dict