code: def test_next_locations_pending(self):
      func = GPyOpt.objective_examples.experiments1d.forrester()
      domain = [
          {"name": "var1", "type": "continuous", "domain": (0, 1)}
      ]
      X_init = np.array([[0.0], [0.5], [1.0]])
      Y_init = func.f(X_init)
  
      np.random.seed(1)
      bo_no_pending = BayesianOptimization(
          f=None, domain=domain, X=X_init, Y=Y_init
      )
      x_no_pending = bo_no_pending.suggest_next_locations()
  
      np.random.seed(1)
      bo_pending = BayesianOptimization(
          f=None, domain=domain, X=X_init, Y=Y_init, de_duplication=True
      )
      x_pending = bo_pending.suggest_next_locations(
          pending_X=x_no_pending
      )
  
      self.assertFalse(np.isclose(x_pending, x_no_pending))
  
file_path: GPyOpt/GPyOpt/testing/methods_tests/test_bayesian_optimization.py
imports: import unittest
  import numpy
  import GPyOpt
  from GPyOpt.methods import BayesianOptimization
label_desc: Use image node_id 1 for calling the TestBayesianOptimization obj's underlying member method code with example usage: obj.test_next_locations_pending() without return types