code: def fun(self, x):
      self.nfev += 1
      return self.func(x, *self.args)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from scipy.optimize import OptimizeResult
  from scipy.optimize import minimize
  from scipy.special import gammaln
  from scipy._lib._util import check_random_state
label_desc: Use image node_id 2 for calling the ObjectiveFunWrapper obj's underlying member method code with example usage: obj.fun(x) and returns: self