code: def test_failure_maxfun(self, locally_biased):
      # test that if optimization runs for the maximal number of
      # evaluations, success = False is returned
  
      maxfun = 100
      result = direct(
          self.styblinski_tang,
          self.bounds_stylinski_tang,
          maxfun=maxfun,
          locally_biased=locally_biased,
      )
      assert result.success is False
      assert result.status == 1
      assert result.nfev >= maxfun
      message = (
          "Number of function evaluations done is "
          f"larger than maxfun={maxfun}"
      )
      assert result.message == message
  
imports: from numpy.testing import assert_allclose, assert_array_less
  import pytest
  import numpy
  from scipy.optimize import direct, Bounds
label_desc: Use image node_id 16 for calling the TestDIRECT obj's underlying member method code with example usage: obj.test_failure_maxfun(locally_biased) without return types