code: def _set_version(checkpoint: _CHECKPOINT, version: str) -> None:
      """Set the version of a Lightning checkpoint."""
      checkpoint["pytorch-lightning_version"] = version
  
imports: import logging
  import os
  import pickle
  import sys
  import threading
  import warnings
  from types import ModuleType, TracebackType
  from typing import Any, Dict, List, Optional, Tuple, Type
  from packaging.version import Version
  import lightning.pytorch
  from lightning.fabric.utilities.enums import LightningEnum
  from lightning.fabric.utilities.imports import _IS_WINDOWS
  from lightning.fabric.utilities.types import _PATH
  from lightning.fabric.utilities.warnings import PossibleUserWarning
  from lightning.pytorch.utilities.migration.migration import _migration_index
  from lightning.pytorch.utilities.rank_zero import rank_zero_warn
label_desc: Use image node_id 4 for calling a global function with example usage: _set_version(checkpoint, version) without return types