code: def test_invalid_bounds_type(self, bounds):
      error_msg = (
          "bounds must be a sequence or " "instance of Bounds class"
      )
      with pytest.raises(ValueError, match=error_msg):
          direct(self.styblinski_tang, bounds)
  
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 29 for calling the TestDIRECT obj's underlying member method code with example usage: obj.test_invalid_bounds_type(bounds) without return types