code: def _check_metrics(metric_objs, metrics_dict, expected_metrics):
      assert {m.key for m in metric_objs} == {
          m.key for m in expected_metrics
      }
      assert {m.value for m in metric_objs} == {
          m.value for m in expected_metrics
      }
      assert {m.timestamp for m in metric_objs} == {
          m.timestamp for m in expected_metrics
      }
      assert {m.step for m in metric_objs} == {
          m.step for m in expected_metrics
      }
      assert len(metrics_dict) == len(expected_metrics)
      assert metrics_dict == {m.key: m.value for m in expected_metrics}
  
imports: from mlflow.entities import RunData
label_desc: Use image node_id 1 for calling a global function with example usage: _check_metrics(metric_objs, metrics_dict, expected_metrics) without return types