class_docstr: Object to wrap user cost function, allowing picklability
class_docstr_tok: ["Object","to","wrap","user","cost","function",",","allowing","picklability"]
code: def __call__(self, x):
      return self.f(x, *self.args)
  
imports: from __future__ import division, print_function, absolute_import
  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._lib.six import xrange, string_types
label_desc: Use image node_id 2 for calling the _FunctionWrapper obj's underlying member method code with example usage: obj.__call__(x) and returns: self