code: def test_trials_get_best_hyperparams_should_return_hyperparams_of_best_trial(
      self,
  ):
      # Given
      trial_1 = self.trial
      trial_split_1 = self._given_success_trial_validation_split(
          trial_1, best_score=0.2
      )
  
      hp_trial_2 = HyperparameterSamples({"b": 3})
      trial_2 = Trial(
          _dataclass=TrialDataclass(
              trial_number=1, hyperparams=hp_trial_2
          ).start(),
          context=self.cx,
          is_deep=True,
      )
      trial_2_scope = SOME_FULL_SCOPED_LOCATION[
          :RoundDataclass
      ].with_id(1)
      self.cx.repo.save(trial_2._dataclass, trial_2_scope)
      trial_split_2 = self._given_success_trial_validation_split(
          trial_2, best_score=0.1
      )
      trial_2._set_success()
      self.cx.repo.save(trial_2._dataclass, trial_2_scope)
  
      trials = Round(
          RoundDataclass(
              trials=[trial_1._dataclass, trial_2._dataclass]
          ),
          context=self.cx.with_loc(
              SOME_FULL_SCOPED_LOCATION[:ClientDataclass]
          ),
          is_deep=True,
      )
  
      # When
      best_hyperparams = trials.get_best_hyperparams(
          SOME_OTHER_METRIC_NAME_MSE
      )
  
      # Then
      assert best_hyperparams == hp_trial_2
      assert trial_2.is_success()
  
imports: import copy
  import datetime
  import json
  from neuraxle.base import TrialStatus
  from neuraxle.hyperparams.space import HyperparameterSamples
  from neuraxle.logging.logging import LOGGING_DATETIME_STR_FORMAT
  from neuraxle.metaopt.context import AutoMLContext
  from neuraxle.metaopt.data.aggregates import MetricResults, Round, Trial, TrialSplit
  from neuraxle.metaopt.data.vanilla import ClientDataclass, MetricResultsDataclass, RoundDataclass, ScopedLocation, TrialDataclass, to_json
  from testing_neuraxle.metaopt.test_automl_dataclasses import SOME_FULL_SCOPED_LOCATION, SOME_ROOT_DATACLASS, SOME_TRIAL_DATACLASS
label_desc: Use image node_id 17 for calling the TestTrials obj's underlying member method code with example usage: obj.test_trials_get_best_hyperparams_should_return_hyperparams_of_best_trial() without return types