code: def test_dict_to_trial(space, fixed_suggestion, dict_params):
      """Check if dict is converted successfully to trial."""
      t = dict_to_trial(dict_params, space)
      assert t.experiment is None
      assert t.status == "new"
      assert t.worker is None
      assert t.submit_time is None
      assert t.start_time is None
      assert t.end_time is None
      assert t.results == []
      assert len(t._params) == len(fixed_suggestion._params)
      for i in range(len(t.params)):
          assert (
              t._params[i].to_dict()
              == fixed_suggestion._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 7 for calling a global function with example usage: test_dict_to_trial(space, fixed_suggestion, dict_params) without return types