class_docstr: Unit test for synthetic function. 
class_docstr_tok: ["Unit","test","for","synthetic","function","."]
docstr: Tests that the optimum value is larger than the test points. 
docstr_tok: ["Tests","that","the","optimum","value","is","larger","than","the","test","points","."]
code: def _test_for_max_val(self, func_caller):
      """Tests that the optimum value is larger than the test points."""
      test_points = np.random.random(
          (self.num_test_points, func_caller.domain.dim)
      )
      fc_test_vals, _, _ = self._get_test_vals_from_func_caller(
          func_caller, test_points
      )
      assert np.all(np.array(fc_test_vals) <= func_caller.maxval)
  
imports: import os
  import numpy
  from .None import cp_domain_utils, experiment_caller
  from ..utils import euclidean_synthetic_functions
  from ..utils.base_test_class import BaseTestClass, execute_tests
  from ..utils.ancillary_utils import get_list_of_floats_as_str
  from ..test_data.park2_4.park2_4 import park2_4
  from ..test_data.park2_4.park2_4_mf import park2_4_mf
  from ..test_data.park2_4.park2_4_mf import cost
  from ..test_data.park1_3.park1_3 import park1_3
  from ..test_data.park1_3.park1_3_mf import park1_3_mf
  from ..test_data.park1_3.park1_3_mf import cost
label_desc: Use image node_id 4 for calling the EuclideanFunctionCallerTestCase obj's underlying member method code with example usage: obj._test_for_max_val(func_caller) without return types