class_docstr: Wrap `opt` in a lookahead optimizer
class_docstr_tok: ["Wrap","`","opt","`","in","a","lookahead","optimizer"]
code: def clear_state(self):
      self.opt.clear_state()
      self._init_state()
  
imports: from __future__ import annotations
  from .torch_basics import *
label_desc: Use image node_id 3 for calling the Lookahead obj's underlying member method code with example usage: obj.clear_state() without return types