code: def test_cost_withGradients_evaluation_time(self):
      cost_model = CostModel("evaluation_time")
      cost_model.update_cost_model(
          np.array([[3, 0], [4, 1], [5, 1]]), np.array([4, 5, 6])
      )
  
      cost, d_cost = cost_model.cost_withGradients(np.array([2, 2]))
  
      self.assertTrue(np.isclose(cost, np.array([3.52110177])))
      self.assertTrue(
          np.isclose(
              d_cost, np.array([0.65617088, 0.08849139]), 1e-04
          ).all()
      )
  
file_path: GPyOpt/GPyOpt/testing/core_tests/test_cost.py
imports: import unittest
  import numpy
  from GPyOpt.core.task import CostModel
  from GPyOpt.core.task.cost import constant_cost_withGradients
label_desc: Use image node_id 5 for calling the TestCostModel obj's underlying member method code with example usage: obj.test_cost_withGradients_evaluation_time() without return types