code: def test_get_statistics():
      tracker = metrics_tracking.MetricsTracker()
      history = [
          metrics_tracking.MetricObservation(random.random(), i)
          for i in range(10)
      ]
      tracker.set_history("new_metric", history)
      stats = tracker.get_statistics("new_metric")
      assert set(stats.keys()) == {
          "min",
          "max",
          "mean",
          "median",
          "var",
          "std",
      }
      history = [obs.value for obs in history]
      assert stats["min"] == np.min(history)
      assert stats["max"] == np.max(history)
      assert stats["mean"] == np.mean(history)
      assert stats["median"] == np.median(history)
      assert stats["var"] == np.var(history)
      assert stats["std"] == np.std(history)
  
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 10 for calling a global function with example usage: test_get_statistics() without return types