code: def __init__(
      self,
      method=None,
      penalty=None,
      alpha=None,
      optim_param: dict = None,
      iters: int = 0,
  ):
      self.method = method
      self.optim_param = optim_param
      self.iters = iters
      self.l2_penalty = True if penalty == "l2" else False
      self.l1_penalty = True if penalty == "l1" else False
      self.alpha = alpha
  
      self.model_parameter = None
      self.prev_model_parameter = None
      self.optimizer = None
  
imports: import logging
  import numpy
  import torch
label_desc: Use image node_id 1 to create a new Optimizer object from inherited base classes: object with example: obj = Optimizer(method, penalty, alpha, optim_param, iters)