docstr: Test the state_dict and load_state_dict methods of Progress
docstr_tok: ["Test","the","state_dict","and","load_state_dict","methods","of","Progress"]
code: def test_progress_state_dict(self) -> None:
      """
      Test the state_dict and load_state_dict methods of Progress
      """
      progress = Progress(
          num_epochs_completed=2,
          num_steps_completed=8,
          num_steps_completed_in_epoch=4,
      )
  
      state_dict = progress.state_dict()
  
      new_progress = Progress()
  
      self.assertEqual(new_progress.num_epochs_completed, 0)
      self.assertEqual(new_progress.num_steps_completed, 0)
      self.assertEqual(new_progress.num_steps_completed_in_epoch, 0)
  
      new_progress.load_state_dict(state_dict)
  
      self.assertEqual(new_progress.num_epochs_completed, 2)
      self.assertEqual(new_progress.num_steps_completed, 8)
      self.assertEqual(new_progress.num_steps_completed_in_epoch, 4)
  
file_path: tnt/tests/utils/test_progress.py
imports: import unittest
  from unittest.mock import patch
  from torchtnt.framework._test_utils import generate_random_dataloader, generate_random_iterable_dataloader
  from torchtnt.utils.progress import estimated_steps_in_epoch, estimated_steps_in_fit, estimated_steps_in_loop, Progress
label_desc: Use image node_id 1 for calling the ProgressTest obj's underlying member method code with example usage: obj.test_progress_state_dict() without return types