code: def get_multi_fidelity_history_str(history):
      """Prints the history of the multifidelity optimisation."""
      fidel_dim = len(history.query_fidels[0])
      print_fidels = np.array(
          [get_rounded_list(qf) for qf in history.query_fidels]
      ).T
      # First the function values
      val_title_str = ", ".join(
          ["fidel(dim=%d)" % (fidel_dim), "val", "curr_true_opt_val"]
      )
      val_title_str = val_title_str + "\n" + "-" * len(val_title_str)
      print_vals = get_rounded_list(history.query_vals)
      print_curr_opt_vals = get_rounded_list(history.curr_true_opt_vals)
      val_history_mat_str_T = np.vstack(
          (print_fidels, print_vals, print_curr_opt_vals)
      )
      val_history_mat_list = [
          get_list_of_floats_as_str(row)
          for row in val_history_mat_str_T.T
      ]
      val_history_mat_str = "\n".join(val_history_mat_list)
      # NOw the fidels
      fidel_title_str = ", ".join(
          [
              "fidel(%d)" % (fidel_dim),
              "eval_times",
              "fidel_costs",
              "cum(fidel_costs)",
              "receive_times",
          ]
      )
      fidel_title_str = (
          fidel_title_str + "\n" + "-" * len(fidel_title_str)
      )
      fidel_history_mat_str_T = np.vstack(
          (
              print_fidels,
              history.query_eval_times,
              history.query_cost_at_fidels,
              np.cumsum(history.query_cost_at_fidels),
              history.query_receive_times,
          )
      )
      fidel_history_mat_list = [
          get_list_of_floats_as_str(row)
          for row in fidel_history_mat_str_T.T
      ]
      fidel_history_mat_str = "\n".join(fidel_history_mat_list)
      return (
          val_title_str
          + "\n"
          + val_history_mat_str
          + "\n\n"
          + fidel_title_str
          + "\n"
          + fidel_history_mat_str
          + "\n"
      )
  
imports: import numpy
  from ..exd import domains
  from .None import random_optimiser
  from ..exd.experiment_caller import EuclideanFunctionCaller
  from ..exd.worker_manager import SyntheticWorkerManager
  from ..apis.opt import maximise_function, maximise_multifidelity_function
  from ..utils.ancillary_utils import is_nondecreasing, get_list_of_floats_as_str, get_rounded_list
  from ..utils.base_test_class import BaseTestClass, execute_tests
  from ..utils.euclidean_synthetic_functions import get_syn_func_caller, get_mf_cost_function
  from ..utils import reporters
label_desc: Use image node_id 1 for calling a global function with example usage: get_multi_fidelity_history_str(history) and returns: unknown