class_docstr: Optimizer(type=auto, *args, **kwargs)
  Create an optimizer instance of any type.
  
  Parameters:
      type (str or auto): optimizer type,
          can be 'SGD', 'Momentum', 'AdaGrad', 'RMSprop' or 'Adam'
code: def __new__(cls, type=auto, *args, **kwargs):
      if type == auto:
          return lib.optimizer.Optimizer(auto)
      elif hasattr(lib.optimizer, type):
          return getattr(lib.optimizer, type)(*args, **kwargs)
      else:
          raise ValueError("Unknown optimizer `%s`" % type)
  
imports: from __future__ import absolute_import
  import sys
  from .None import lib, auto
  from .helper import find_all_names
label_desc: Use image node_id 1 for calling the Optimizer obj's underlying member method code with example usage: obj.__new__(cls, type) and returns: lib, getattr