class_docstr: The base optimizer class. Sets the rules to update weights
  when training a neural network.
class_docstr_tok: ["The","base","optimizer","class",".","Sets","the","rules","to","update","weights","when","training","a","neural","network","."]
code: def __init__(self, internal):
      if not isinstance(internal, PythonWrapper.Solver):
          raise ValueError(
              "The `internal` must be PythonWrapper.Solver"
          )
  
      self._internal = internal
  
imports: import neoml.PythonWrapper
label_desc: Use image node_id 1 to create a new Solver object  with example: obj = Solver(internal)