code: def test_migrate_loop_current_epoch_to_progress_tracking():
      old_checkpoint = {"global_step": 15, "epoch": 2}
      _set_version(
          old_checkpoint, "1.5.9"
      )  # pretend a checkpoint prior to 1.6.0
      updated_checkpoint, _ = migrate_checkpoint(old_checkpoint)
      assert (
          updated_checkpoint["loops"]["fit_loop"]["epoch_progress"][
              "current"
          ]["completed"]
          == 2
      )
  
imports: from unittest.mock import ANY, MagicMock
  import lightning.pytorch
  import pytest
  import torch
  from lightning.fabric.utilities.warnings import PossibleUserWarning
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import EarlyStopping, ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel, ManualOptimBoringModel
  from lightning.pytorch.utilities.migration import migrate_checkpoint
  from lightning.pytorch.utilities.migration.utils import _get_version, _set_legacy_version, _set_version
label_desc: Use image node_id 3 for calling a global function with example usage: test_migrate_loop_current_epoch_to_progress_tracking() without return types