code: def test_update(self):
      s = State()
  
      key1 = torchbearer.state_key("test_a")
      key2 = torchbearer.state_key("test_b")
  
      new_s = {key1: 1, key2: 2}
      s.update(new_s)
  
      self.assertTrue(s.__contains__(key1))
      self.assertTrue(s[key1] == 1)
  
imports: import unittest
  import warnings
  import torchbearer
  from torchbearer.state import State
label_desc: Use image node_id 3 for calling the TestState obj's underlying member method code with example usage: obj.test_update() without return types