code: def _assert_params(
      self, parameter_id, param, trial_results, search_space
  ):
      command, data = receive()
      self.assertIs(command, CommandType.NewTrialJob)
      data = json.loads(data)
      self.assertEqual(data["parameter_id"], parameter_id)
      self.assertEqual(data["parameter_source"], "algorithm")
      self.assertEqual(data["parameters"]["param"], param)
      self.assertEqual(
          data["parameters"]["trial_results"], trial_results
      )
      self.assertEqual(data["parameters"]["search_space"], search_space)
  
file_path: nni/test/ut/sdk/test_msg_dispatcher.py
imports: import json
  from io import BytesIO
  from unittest import TestCase, main
  from nni.runtime import msg_dispatcher_base
  from nni.runtime.msg_dispatcher import MsgDispatcher
  from nni.runtime.tuner_command_channel.legacy import *
  from nni.tuner import Tuner
  from nni.utils import extract_scalar_reward
label_desc: Use image node_id 2 for calling the MsgDispatcherTestCase obj's underlying member method code with example usage: obj._assert_params(parameter_id, param, trial_results, search_space) without return types