code: def _assert_experiment_rev_order(
      actual: List["ExpRange"],
      expected_revs: List[str],
  ):
      expected_revs = expected_revs.copy()
  
      for actual_exp_range in actual:
          for exp_state in actual_exp_range.revs:
              assert exp_state.rev == expected_revs.pop(0)
  
imports: import datetime
  import random
  from typing import Dict, List
  import pytest
  from dvc.repo.experiments.collect import ExpRange, ExpState, SerializableExp, collect
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_experiment_rev_order(actual, expected_revs) without return types