class_docstr: Implementation of `Lookahead Optimizer: k steps forward, 1 step back <https://arxiv.org/abs/1907.08610>`_
  
  Args:
      :param optimizer:       - the optimizer to work with (sgd, adam etc)
      :param k: (int)         - number of steps to look ahead (default=5)
      :param alpha: (float)   - slow weights step size
code: def load_state_dict(self, state_dict):
      slow_state_dict = {
          "state": state_dict["slow_state"],
          "param_groups": state_dict["param_groups"],
      }
      fast_state_dict = {
          "state": state_dict["fast_state"],
          "param_groups": state_dict["param_groups"],
      }
      super(Lookahead, self).load_state_dict(slow_state_dict)
      self.optimizer.load_state_dict(fast_state_dict)
      self.fast_state = self.optimizer.state
  
file_path: pywick/pywick/optimizers/lookahead.py
imports: from collections import defaultdict
  from torch.optim.optimizer import Optimizer
  import torch
label_desc: Use image node_id 6 for calling the Lookahead obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types