class_docstr: Base class for optimizer
  
  Args:
      opts: Command-line arguments
class_docstr_tok: ["Base","class","for","optimizer","Args",":","opts",":","Command-line","arguments"]
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      self.eps = 1e-8
      self.lr = getattr(opts, "scheduler.lr")
      self.weight_decay = getattr(opts, "optim.weight_decay")
  
imports: import argparse
  from utils import logger
label_desc: Use image node_id 1 to create a new BaseOptim object from inherited base classes: object with example: obj = BaseOptim(opts)