code: def test_hierarchical_dict_to_trial(
      hierarchical_space, hierarchical_trial, hierarchical_dict_params
  ):
      """Check if hierarchical dict is converted successfully to trial."""
      t = dict_to_trial(hierarchical_dict_params, hierarchical_space)
      assert len(t._params) == len(hierarchical_trial._params)
      for i in range(len(t.params)):
          assert (
              t._params[i].to_dict()
              == hierarchical_trial._params[i].to_dict()
          )
  
file_path: orion/tests/unittests/core/test_utils_format.py
imports: import pytest
  from orion.core.utils.format_trials import dict_to_trial, trial_to_tuple, tuple_to_trial
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 11 for calling a global function with example usage: test_hierarchical_dict_to_trial(hierarchical_space, hierarchical_trial, hierarchical_dict_params) without return types