code: def _print_results(
      self,
      objective_function,
      best_score,
      best_para,
      best_iter,
      best_additional_results,
      random_seed,
  ):
      print("\nResults: '{}'".format(objective_function.__name__), " ")
      if best_para is None:
          print(indent, "Best score:", best_score, " ")
          print(indent, "Best parameter set:", best_para, " ")
          print(indent, "Best iteration:", best_iter, " ")
  
      else:
          print(indent, "Best score:", best_score, " ")
  
          if best_additional_results:
              print(indent, "Best additional results:")
              add_results_names = list(best_additional_results.keys())
              add_results_names_align = self.align_para_names(
                  add_results_names
              )
  
              for (
                  best_additional_result
              ) in best_additional_results.keys():
                  added_spaces = add_results_names_align[
                      best_additional_result
                  ]
                  print(
                      indent,
                      indent,
                      "'{}'".format(best_additional_result),
                      "{}:".format(added_spaces),
                      best_additional_results[best_additional_result],
                      " ",
                  )
  
          if best_para:
              print(indent, "Best parameter set:")
              para_names = list(best_para.keys())
              para_names_align = self.align_para_names(para_names)
  
              for para_key in best_para.keys():
                  added_spaces = para_names_align[para_key]
                  print(
                      indent,
                      indent,
                      "'{}'".format(para_key),
                      "{}:".format(added_spaces),
                      best_para[para_key],
                      " ",
                  )
  
          print(indent, "Best iteration:", best_iter, " ")
  
      print(" ")
      print(indent, "Random seed:", random_seed, " ")
      print(" ")
  
file_path: Hyperactive/hyperactive/print_results.py
imports: import logging
  import numpy
label_desc: Use image node_id 4 for calling the PrintResults obj's underlying member method code with example usage: obj._print_results(objective_function, best_score, best_para, best_iter, best_additional_results, random_seed) without return types