class_docstr: Simple Momentum optimizer with velocity state.
  
  Args:
      args(Namespace): Arguments obtained from ArgumentParser.
      learning_rate(float|LRScheduler): The learning rate used to update parameters.
          Can be a float value or a paddle.optimizer.lr.LRScheduler.
code: def __init__(self, args, learning_rate):
      super().__init__()
      self.learning_rate = learning_rate
      self.momentum = args.momentum
      self.weight_decay = args.weight_decay
      self.grad_clip = None
      self.multi_precision = args.amp
  
imports: import sys
  import logging
  from paddle import optimizer
label_desc: Use image node_id 1 to create a new Momentum object  with example: obj = Momentum(args, learning_rate)