code: def test_trial_to_tuple(space, fixed_suggestion, params_tuple):
      """Check if trial is correctly created from a sample/tuple."""
      data = trial_to_tuple(fixed_suggestion, space)
      assert data == params_tuple
  
      fixed_suggestion._params[0].name = "lalala"
      with pytest.raises(ValueError) as exc:
          trial_to_tuple(fixed_suggestion, space)
  
      assert "Trial params: ['lalala', 'yolo2', 'yolo3']" in str(
          exc.value
      )
  
      fixed_suggestion._params.pop(0)
      with pytest.raises(ValueError) as exc:
          trial_to_tuple(fixed_suggestion, space)
  
      assert "Trial params: ['yolo2', 'yolo3']" in str(exc.value)
  
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 5 for calling a global function with example usage: test_trial_to_tuple(space, fixed_suggestion, params_tuple) without return types