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 get_key(self, statekey):
      if isinstance(statekey, str):
          warnings.warn(
              "State was accessed with a string: {}, generate keys with StateKey(str).".format(
                  statekey
              ),
              stacklevel=3,
          )
      return statekey
  
imports: from torchbearer import Metric
  import warnings
label_desc: Use image node_id 2 for calling the State obj's underlying member method code with example usage: obj.get_key(statekey) and returns: statekey