class_docstr: Unit test for synthetic function. 
class_docstr_tok: ["Unit","test","for","synthetic","function","."]
docstr: Tests all synthetic functions in a loop. 
docstr_tok: ["Tests","all","synthetic","functions","in","a","loop","."]
code: def test_all_synthetic_functions(self):
      """Tests all synthetic functions in a loop."""
      for idx, (
          func_name,
          domain_dim,
          fidel_dim,
          noise_type,
          noise_scale,
      ) in enumerate(self.test_function_data):
          sf_or_mf = "sf" if fidel_dim is None else "mf"
          self.report(
              (
                  "Testing %d/%d: %s(%s), domain_dim:%s, fidel_dim:%s, "
                  + "noise(%s, %s)."
              )
              % (
                  idx + 1,
                  len(self.test_function_data),
                  func_name,
                  sf_or_mf,
                  domain_dim,
                  fidel_dim,
                  noise_type,
                  noise_scale,
              )
          )
          # get the function
          func_caller = esf.get_syn_func_caller(
              func_name,
              domain_dim,
              fidel_dim,
              noise_type,
              noise_scale,
              to_normalise_domain=True,
          )
          unnorm_func_caller = esf.get_syn_func_caller(
              func_name,
              domain_dim,
              fidel_dim,
              noise_type,
              noise_scale,
              to_normalise_domain=False,
          )
          # Test for the maximum values
          if not func_caller.is_noisy():
              self._test_for_max_val(func_caller)
          # Test for the function values and print out result
          fc_err, ufc_err, fc_ufc_err = self._test_for_func_vals(
              func_caller, unnorm_func_caller
          )
          self.report(
              (
                  "normalised_err: %0.5f, unnormalised_err: %0.5f., "
                  + "norm-unnorm_err: %0.5f"
              )
              % (fc_err, ufc_err, fc_ufc_err),
              "test_result",
          )
          # Print variation along a fidelity dimension
          if func_caller.is_mf() and not func_caller.is_noisy():
              self._test_variation_along_fidel_dim(
                  func_caller, unnorm_func_caller, 0
              )
  
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 8 for calling the EuclideanFunctionCallerTestCase obj's underlying member method code with example usage: obj.test_all_synthetic_functions() without return types