code: def _check(metric, key, value, timestamp, step):
      assert type(metric) == Metric
      assert metric.key == key
      assert metric.value == value
      assert metric.timestamp == timestamp
      assert metric.step == step
  
imports: from mlflow.entities import Metric
  from mlflow.utils.time import get_current_time_millis
  from tests.helper_functions import random_int, random_str
label_desc: Use image node_id 1 for calling a global function with example usage: _check(metric, key, value, timestamp, step) without return types