code: def test_get_new_suggestions(self):
      randomSearchAlgorithm = RandomSearchAlgorithm()
      new_trials = randomSearchAlgorithm.get_new_suggestions(
          self.study.id, self.trials
      )
  
      # Assert getting one trial
      self.assertEqual(len(new_trials), 1)
  
      # Assert getting the random trial
      new_trial = new_trials[0]
      new_parameter_values = new_trial.parameter_values
      new_parameter_values_json = json.loads(new_parameter_values)
      self.assertTrue("hidden1" in new_parameter_values_json)
      self.assertTrue(new_parameter_values_json["hidden1"] >= 40)
      self.assertTrue(new_parameter_values_json["hidden1"] <= 400)
  
file_path: advisor/advisor_server/suggestion/algorithm/particle_swarm_optimization_test.py
imports: import json
  from django.test import TestCase
  from suggestion.models import Study
  from suggestion.models import Trial
  from random_search import RandomSearchAlgorithm
  from particle_swarm_optimization import ParticleSwarmOptimization
label_desc: Use image node_id 4 for calling the RandomSearchAlgorithmTest obj's underlying member method code with example usage: obj.test_get_new_suggestions() without return types