code: def test_set_history():
      tracker = metrics_tracking.MetricsTracker()
      tracker.set_history(
          "new_metric",
          [
              metrics_tracking.MetricObservation(0.5, 0),
              metrics_tracking.MetricObservation(1.5, 1),
              metrics_tracking.MetricObservation(2.0, 2),
          ],
      )
      values = [obs.value for obs in tracker.get_history("new_metric")]
      steps = [obs.step for obs in tracker.get_history("new_metric")]
      assert values == [[0.5], [1.5], [2.0]]
      assert steps == [0, 1, 2]
  
imports: import random
  import numpy
  import pytest
  from keras_tuner.backend.keras import losses
  from keras_tuner.backend.keras import metrics
  from keras_tuner.engine import metrics_tracking
label_desc: Use image node_id 7 for calling a global function with example usage: test_set_history() without return types