code: def assert_callbacks(self):
      # TODO: Move this to wherever it belongs, probably in the cleanup of a fixture.
      assert self._current_phase
      num = self._current_phase.n_trials
      if num == 0:
          return
  
      repetition_id, rung_id = self.infer_repetition_and_rung(num - 1)
  
      brackets = []  # algo.algorithm.brackets
  
      assert len(brackets) == repetition_id
  
      for j in range(0, rung_id + 1):
          for bracket in brackets:
              assert len(bracket.rungs[j]["results"]) > 0, (bracket, j)
  
imports: from __future__ import annotations
  import copy
  from typing import ClassVar
  import numpy
  import pytest
  from test_hyperband import create_rung_from_points, create_trial_for_hb
  from orion.algo.evolution_es import BracketEVES, BudgetTuple, EvolutionES, compute_budgets
  from orion.algo.hyperband import RungDict
  from orion.algo.space import Fidelity, Real, Space
  from orion.core.utils import backward
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase, _are_equal
  from orion.testing.trial import create_trial
label_desc: Use image node_id 6 for calling the TestGenericEvolutionES obj's underlying member method code with example usage: obj.assert_callbacks() without return types