code: def test_get_best_trial_equality(self):
      root = build_full_tree(4)
  
      leafs = root.get_nodes_at_depth(3)
      assert leafs[0].item.id == "id-8"
      assert leafs[0].get_best_trial() == root.item
  
      # Return parent in case of equality, if they are all as good, we want the earliest one.
      root.children[0].item.objective.value = root.item.objective.value
      assert leafs[0].get_best_trial() == root.item
  
      # Make sure the second one is returned is root is not as good.
      root.item.objective.value += 1
      assert leafs[0].get_best_trial() == root.children[0].item
  
imports: import os
  import random
  import pytest
  from base import ObjectiveStub, TrialStub, build_full_tree, build_population, compare_generations
  from orion.algo.pbt.pbt import LineageNode, Lineages
label_desc: Use image node_id 11 for calling the TestLineageNode obj's underlying member method code with example usage: obj.test_get_best_trial_equality() without return types