code: def test_from_tuple_and_history_point(generated_history):
      history, domain = generated_history
      hist_point = history[0]
      with tempfile.TemporaryDirectory() as tmp_dir:
          rep = Tensorboard(
              domain, metrics=["metric_1", "metric_2"], logdir=tmp_dir
          )
          rep.log(hist_point)
          rep.log(
              (
                  domain.sample(),
                  {
                      "metric_1": 1.0,
                      "metric_2": 2.0,
                      "metric_2_var": 3.0,
                  },
              )
          )
          assert (
              len(
                  [
                      dirname
                      for dirname in os.listdir(tmp_dir)
                      if dirname.startswith("experiment_")
                  ]
              )
              == 2
          )
          for root, dirs, files in os.walk(tmp_dir):
              assert all(
                  map(
                      lambda x: x.startswith("events.out.tfevents"),
                      files,
                  )
              )
  
imports: import os
  import tempfile
  from ..tensorboard import Tensorboard
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