code: def __init__(
      self,
      params,
      lr=2e-3,
      betas=(0.9, 0.999),
      eps=1e-8,
      weight_decay=0,
      schedule_decay=4e-3,
  ):
      defaults = dict(
          lr=lr,
          betas=betas,
          eps=eps,
          weight_decay=weight_decay,
          schedule_decay=schedule_decay,
      )
      super(Nadam, self).__init__(params, defaults)
  
imports: from torch.optim.optimizer import Optimizer
label_desc: Use image node_id 1 to create a new Nadam object from inherited base classes: Optimizer with example: obj = Nadam(params, lr, betas, eps, weight_decay, schedule_decay)