code: def test_progress_raises():
      with pytest.raises(
          ValueError, match="instances should be of the same class"
      ):
          _Progress(_ReadyCompletedTracker(), _ProcessedTracker())
  
      p = _Progress(_ReadyCompletedTracker(), _ReadyCompletedTracker())
      with pytest.raises(
          TypeError,
          match="_ReadyCompletedTracker` doesn't have a `started` attribute",
      ):
          p.increment_started()
      with pytest.raises(
          TypeError,
          match="_ReadyCompletedTracker` doesn't have a `processed` attribute",
      ):
          p.increment_processed()
  
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 6 for calling a global function with example usage: test_progress_raises() without return types