code: def _version(
      loggers: List[Any], separator: str = "_"
  ) -> Union[int, str]:
      if len(loggers) == 1:
          return loggers[0].version
      # Concatenate versions together, removing duplicates and preserving order
      return separator.join(
          dict.fromkeys(str(logger.version) for logger in loggers)
      )
  
file_path: pytorch-lightning/src/lightning/pytorch/loggers/utilities.py
imports: from pathlib import Path
  from typing import Any, List, Tuple, Union
  from torch import Tensor
  import lightning.pytorch
  from lightning.pytorch.callbacks import Checkpoint
label_desc: Use image node_id 1 for calling a global function with example usage: _version(loggers, separator) and returns: separator, loggers