code: def force_observe(hyperband: Hyperband, trial: Trial) -> None:
      # hyperband.sampled.add(hashlib.md5(str(list(point)).encode("utf-8")).hexdigest())
  
      hyperband.register(trial)
  
      id_wo_fidelity = hyperband.get_id(trial, ignore_fidelity=True)
  
      bracket_index = hyperband.trial_to_brackets.get(
          id_wo_fidelity, None
      )
  
      if bracket_index is None:
          fidelity = flatten(trial.params)[hyperband.fidelity_index]
          assert hyperband.brackets is not None
          bracket_index = [
              i
              for i, bracket in enumerate(hyperband.brackets)
              if bracket.rungs[0]["resources"] == fidelity
          ][0]
  
      hyperband.trial_to_brackets[id_wo_fidelity] = bracket_index
  
      hyperband.observe([trial])
  
imports: from __future__ import annotations
  import copy
  import logging
  import typing
  from typing import Any, ClassVar, Sequence
  import numpy
  import pytest
  from orion.algo.hyperband import BudgetTuple, Hyperband, HyperbandBracket, RungDict, compute_budgets
  from orion.algo.space import Fidelity, Integer, Real, Space
  from orion.core.utils.flatten import flatten
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase
  from orion.testing.trial import compare_trials, create_trial
label_desc: Use image node_id 12 for calling a global function with example usage: force_observe(hyperband, trial) without return types