code: def compare_obs(
      test: TestCase,
      obs1: Observation,
      obs2: Observation,
      discrepancy_tol: float = 1e-8,
  ) -> None:
      test.assertEqual(obs1.data.metric_names, obs2.data.metric_names)
      test.assertTrue(np.array_equal(obs1.data.means, obs2.data.means))
      discrep = np.max(
          np.abs(obs1.data.covariance - obs2.data.covariance)
      )
      test.assertLessEqual(discrep, discrepancy_tol)
      test.assertEqual(
          obs1.features.parameters, obs2.features.parameters
      )
  
imports: import numpy
  from ax.core.observation import Observation, ObservationData, ObservationFeatures
  from ax.modelbridge.transforms.merge_repeated_measurements import MergeRepeatedMeasurements
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling a global function with example usage: compare_obs(test, obs1, obs2, discrepancy_tol) without return types