code: def test_serialization():
      tracker = metrics_tracking.MetricsTracker()
      tracker.register("metric_min", "min")
      tracker.register("metric_max", "max")
      tracker.set_history(
          "metric_min",
          [
              metrics_tracking.MetricObservation(1.0, 0),
              metrics_tracking.MetricObservation(2.0, 1),
              metrics_tracking.MetricObservation(3.0, 2),
          ],
      )
      tracker.set_history(
          "metric_max",
          [
              metrics_tracking.MetricObservation(1.0, 0),
              metrics_tracking.MetricObservation(2.0, 1),
              metrics_tracking.MetricObservation(3.0, 2),
          ],
      )
  
      new_tracker = metrics_tracking.MetricsTracker.from_config(
          tracker.get_config()
      )
      assert new_tracker.metrics.keys() == tracker.metrics.keys()
  
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 12 for calling a global function with example usage: test_serialization() without return types