docstr: Test that acquisition function does correct constraint(s) check
docstr_tok: ["Test","that","acquisition","function","does","correct","constraint","(","s",")","check"]
code: def test_acquisition_function(self):
      """Test that acquisition function does correct constraint(s) check"""
  
      y = [1.37, 8.22, 4.2, 0.55, 3.14]
      self.ei_acquisition._compute_acq.return_value = np.array(y)[
          :, None
      ]
      correct_y = [-y[0]] + [0, 0] + [-y[3]] + [0]
      x_unzipped = np.array(
          [
              [0, 1, 3.3, -3.3],
              [1, 0, 1.5, 4.7],
              [0, 1, 4.1, 4.5],
              [1, 0, -4.1, 4.5],
              [1, 0, 5, 3],
          ]
      )
  
      acquisitions = self.ei_acquisition.acquisition_function(
          x_unzipped
      )
  
      assert np.isclose(
          acquisitions, np.array(correct_y)[:, None]
      ).all()
  
file_path: GPyOpt/GPyOpt/testing/acquisitions_tests/test_ei_acquisition.py
imports: import unittest
  from mock import Mock
  import numpy
  from GPyOpt.acquisitions import AcquisitionEI
  from GPyOpt.core.task.space import Design_space
label_desc: Use image node_id 2 for calling the TestEIAcquisitionWithCategoricalVariables obj's underlying member method code with example usage: obj.test_acquisition_function() without return types