class_docstr: Abstract class :class:`Reporter` for result visualisation.
code: def _get_best_from_db(self, selection_fn: Callable):
      best_entry = self._db_default_table.get(doc_id=1)
      best_score = best_entry["metrics"][self.primary_metric]["value"]
      for entry in self._db_default_table:
          current_score = entry["metrics"][self.primary_metric]["value"]
          new_score = selection_fn(current_score, best_score)
          if new_score != best_score:
              best_entry = entry
              best_score = new_score
      return best_entry
  
imports: import abc
  import datetime
  import os
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import tinydb
  from hypertunity.domain import Domain, Sample
  from hypertunity.optimisation.base import EvaluationScore, HistoryPoint
label_desc: Use image node_id 9 for calling the Reporter obj's underlying member method code with example usage: obj._get_best_from_db(selection_fn) and returns: best_entry