code: def test_state_dict(self):
      check = Best("test")
      check.best = "temp2"
      check.epochs_since_last_save = 10
  
      state = check.state_dict()
  
      check = Best("test")
      check.load_state_dict(state)
  
      self.assertEqual(check.best, "temp2")
      self.assertEqual(check.epochs_since_last_save, 10)
  
imports: from unittest import TestCase
  from mock import patch, Mock
  import torchbearer
  from torchbearer import Trial
  from torchbearer.callbacks.checkpointers import _Checkpointer, ModelCheckpoint, MostRecent, Interval, Best
  import warnings
label_desc: Use image node_id 10 for calling the TestBest obj's underlying member method code with example usage: obj.test_state_dict() without return types