code: def test_compare_to_statekey(self):
      key_1 = torchbearer.state_key("test_compare_sk")
      key_2 = torchbearer.state_key("test_compare_sk_2")
      # Simulates same key in different sessions where the object hash is changed
      key_2.key = "test_compare_sk"
      self.assertEqual(key_1, key_2)
  
imports: import unittest
  import warnings
  import torchbearer
  from torchbearer.state import State
label_desc: Use image node_id 7 for calling the TestStateKey obj's underlying member method code with example usage: obj.test_compare_to_statekey() without return types