code: def compare_generations(trials, population_size, depth):
      trial_ids = {trial.id for trial in trials}
      expected_ids = {
          f"lineage-{i}-{depth}" for i in range(population_size)
      }
      assert trial_ids == expected_ids
  
imports: from orion.algo.pbt.exploit import BaseExploit
  from orion.algo.pbt.explore import BaseExplore
  from orion.algo.pbt.pbt import LineageNode, Lineages
  from orion.core.utils.pptree import print_tree
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 3 for calling a global function with example usage: compare_generations(trials, population_size, depth) without return types