class_docstr: Unit test for synthetic function. 
class_docstr_tok: ["Unit","test","for","synthetic","function","."]
docstr: Tests and prints variation along the a fidelity dim. 
docstr_tok: ["Tests","and","prints","variation","along","the","a","fidelity","dim","."]
code: def _test_variation_along_fidel_dim(
      self, func_caller, unnorm_func_caller, fidel_dim, test_point=None
  ):
      """Tests and prints variation along the a fidelity dim."""
      _grid_size = 10
      _rem_coords_pre = np.ones((_grid_size, fidel_dim))
      _fidel_dim_coords = np.reshape(
          np.linspace(0, 1, _grid_size), (_grid_size, 1)
      )
      _rem_coords_post = np.ones(
          (_grid_size, func_caller.fidel_space.dim - fidel_dim - 1)
      )
      fidel_test_grid = np.hstack(
          (_rem_coords_pre, _fidel_dim_coords, _rem_coords_post)
      )
      raw_fidel_test_grid = func_caller.get_raw_fidel_coords(
          fidel_test_grid
      )
      test_point = (
          test_point
          if test_point is not None
          else np.random.random((func_caller.domain.dim,))
      )
      raw_test_point = func_caller.get_raw_domain_coords(test_point)
      test_vals_at_grid = [
          func_caller.eval_at_fidel_single(fidel, test_point)[0]
          for fidel in fidel_test_grid
      ]
      ufc_test_vals_at_grid = [
          unnorm_func_caller.eval_at_fidel_single(
              raw_fidel, raw_test_point
          )[0]
          for raw_fidel in raw_fidel_test_grid
      ]
      test_vals_at_grid_str = get_list_of_floats_as_str(
          test_vals_at_grid
      )
      ufc_test_vals_at_grid_str = get_list_of_floats_as_str(
          ufc_test_vals_at_grid
      )
      test_point_str = get_list_of_floats_as_str(test_point)
      raw_test_point_str = get_list_of_floats_as_str(raw_test_point)
      self.report(
          "fidel values (normalised func_caller) at x=%s: (fidel_dim=%d) %s"
          % (test_point_str, fidel_dim, test_vals_at_grid_str),
          "test_result",
      )
      self.report(
          "fidel values (unnorm_func_caller) at x=%s:  (fidel_dim=%d) %s"
          % (raw_test_point_str, fidel_dim, ufc_test_vals_at_grid_str),
          "test_result",
      )
  
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 7 for calling the EuclideanFunctionCallerTestCase obj's underlying member method code with example usage: obj._test_variation_along_fidel_dim(func_caller, unnorm_func_caller, fidel_dim, test_point) without return types