class_docstr: Abstract class :class:`Reporter` for result visualisation.
code: def _convert_history_to_doc(entry: HistoryPoint) -> Dict:
      db_entry = {
          "sample": entry.sample.as_dict(),
          "metrics": {
              k: {"value": v.value, "variance": v.variance}
              for k, v in entry.metrics.items()
          },
      }
      return db_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 13 for calling the Reporter obj's underlying member method code with example usage: obj._convert_history_to_doc(entry) and returns: db_entry