class_docstr: pass a custom accept test
  
  This does nothing but make sure it's being used and ensure all the
  possible return values are accepted
class_docstr_tok: ["pass","a","custom","accept","test","This","does","nothing","but","make","sure","it","'s","being","used","and","ensure","all","the","possible","return","values","are","accepted"]
code: def __call__(self, **kwargs):
      self.been_called = True
      self.ncalls += 1
      if self.ncalls - 1 < len(self.testres):
          return self.testres[self.ncalls - 1]
      else:
          return True
  
imports: import copy
  from numpy.testing import assert_almost_equal, assert_equal, assert_, assert_allclose
  import pytest
  from pytest import raises
  import numpy
  from numpy import cos, sin
  from scipy.optimize import basinhopping, OptimizeResult
  from scipy.optimize._basinhopping import Storage, RandomDisplacement, Metropolis, AdaptiveStepsize
label_desc: Use image node_id 2 for calling the MyAcceptTest obj's underlying member method code with example usage: obj.__call__() and returns: self, True