class_docstr: State dictionary that behaves like a python dict but accepts StateKeys
class_docstr_tok: ["State","dictionary","that","behaves","like","a","python","dict","but","accepts","StateKeys"]
code: def data(self):
      new_state = State()
      for key in self.keys():
          try:
              new_state[key] = self[key].data
          except AttributeError:
              new_state[key] = self[key]
      return new_state
  
imports: from torchbearer import Metric
  import warnings
label_desc: Use image node_id 3 for calling the State obj's underlying member method code with example usage: obj.data() and returns: new_state