code: def test_tuple_to_trial_to_tuple(
      space, fixed_suggestion, params_tuple
  ):
      """The two functions should be inverse."""
      data = trial_to_tuple(tuple_to_trial(params_tuple, space), space)
      assert data == params_tuple
  
      t = tuple_to_trial(trial_to_tuple(fixed_suggestion, space), 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 8 for calling a global function with example usage: test_tuple_to_trial_to_tuple(space, fixed_suggestion, params_tuple) without return types