code: def test_report_intermediate_result(self):
      nni.report_intermediate_result(123)
      self.assertEqual(
          self.channel.get_last_metric(),
          {
              "parameter_id": "test_param",
              "trial_job_id": "test_trial_job_id",
              "type": "PERIODICAL",
              "sequence": 0,
              "value": 123,
          },
      )
  
imports: import nni
  import nni.trial
  from nni.runtime.trial_command_channel import get_default_trial_command_channel, set_default_trial_command_channel
  import numpy
  from unittest import TestCase, main
  from .helper.trial_command_channel import TestHelperTrialCommandChannel
label_desc: Use image node_id 8 for calling the TrialTestCase obj's underlying member method code with example usage: obj.test_report_intermediate_result() without return types