code: def __init__(
      self,
      params: List[Tensor],
      lr=0.001,
      momentum=0,
      weight_decay=0.0,
      nesterov=False,
  ):
      super().__init__(params, lr)
      self.momentum, self.wd, self.nesterov = (
          momentum,
          weight_decay,
          nesterov,
      )
      self.b = (
          [
              Tensor.zeros(
                  *t.shape, device=t.device, requires_grad=False
              )
              for t in self.params
          ]
          if self.momentum
          else []
      )
  
file_path: tinygrad/tinygrad/nn/optim.py
imports: from typing import List
  from tinygrad.helpers import dedup, getenv
  from tinygrad.tensor import Tensor
label_desc: Use image node_id 1 to create a new SGD object from inherited base classes: Optimizer with example: obj = SGD(params, lr, momentum, weight_decay, nesterov)