code: def load(self, filename):
      savedict = torch.load(filename, lambda storage, loc: storage)
  
      self.model.load_state_dict(savedict["model"])
      if self.args["mode"] == "train":
          self.optimizer.load_state_dict(savedict["optimizer"])
  
imports: import torch
label_desc: Use image node_id 3 for calling the Trainer obj's underlying member method code with example usage: obj.load(filename) without return types