class_docstr: Object to wrap user cost function, allowing picklability
class_docstr_tok: ["Object","to","wrap","user","cost","function",",","allowing","picklability"]
code: def __init__(self, f, args):
      self.f = f
      self.args = [] if args is None else args
  
imports: import warnings
  import numpy
  from scipy.optimize import OptimizeResult, minimize
  from scipy.optimize.optimize import _status_message
  from scipy._lib._util import check_random_state, MapWrapper
  from scipy.optimize._constraints import Bounds, new_bounds_to_old, NonlinearConstraint, LinearConstraint
  from scipy.sparse import issparse
label_desc: Use image node_id 1 to create a new _FunctionWrapper object  with example: obj = _FunctionWrapper(f, args)