code: def test_from_tuple_and_history_point(generated_history):
      history, domain = generated_history
      hist_point = history[0]
      rep = Table(
          domain,
          metrics=["metric_1", "metric_2"],
          primary_metric="metric_1",
      )
      rep.log(hist_point)
      sample = domain.sample()
      rep.log(
          (
              sample,
              {"metric_1": 1.0, "metric_2": 2.0, "metric_2_var": 3.0},
          )
      )
      assert rep.data.tolist() == [
          [
              1,
              *list(hist_point.sample.flatten().values()),
              *list(hist_point.metrics.values()),
          ],
          [
              2,
              *list(sample.flatten().values()),
              EvaluationScore(1.0),
              EvaluationScore(2.0, 3.0),
          ],
      ]
  
imports: import os
  import tempfile
  from hypertunity.optimisation.base import EvaluationScore
  from ..table import Table
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_tuple_and_history_point(generated_history) without return types