code: def test_tracker_reset_on_restart():
      t = _StartedTracker(ready=3, started=3, completed=2)
      t.reset_on_restart()
      assert t == _StartedTracker(ready=2, started=2, completed=2)
  
      t = _ProcessedTracker(
          ready=4, started=4, processed=3, completed=2
      )
      t.reset_on_restart()
      assert t == _ProcessedTracker(
          ready=2, started=2, processed=2, completed=2
      )
  
file_path: pytorch-lightning/tests/tests_pytorch/loops/test_progress.py
imports: from copy import deepcopy
  import pytest
  from lightning.pytorch.loops.progress import _BaseProgress, _OptimizerProgress, _ProcessedTracker, _Progress, _ReadyCompletedTracker, _StartedTracker
label_desc: Use image node_id 2 for calling a global function with example usage: test_tracker_reset_on_restart() without return types