code: def test_maxfun_wrong_type(self, maxfun):
      error_msg = "maxfun must be of type int."
      with pytest.raises(ValueError, match=error_msg):
          direct(
              self.styblinski_tang,
              self.bounds_stylinski_tang,
              maxfun=maxfun,
          )
  
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 25 for calling the TestDIRECT obj's underlying member method code with example usage: obj.test_maxfun_wrong_type(maxfun) without return types