class_docstr: wrap a minimizer function as a minimizer class
class_docstr_tok: ["wrap","a","minimizer","function","as","a","minimizer","class"]
code: def __call__(self, x0):
      if self.func is None:
          return self.minimizer(x0, **self.kwargs)
      else:
          return self.minimizer(self.func, x0, **self.kwargs)
  
imports: import numpy
  import math
  from numpy import cos, sin
  import scipy.optimize
  from scipy._lib._util import check_random_state
label_desc: Use image node_id 2 for calling the MinimizerWrapper obj's underlying member method code with example usage: obj.__call__(x0) and returns: self, self