code: def test_standalone(caplog):
      overwrite_intermediate_seq(0)
  
      with pytest.warns(RuntimeWarning) as record:
          nni.get_next_parameter()
  
      assert len(record) == 1
      assert (
          "Running trial code without runtime."
          in record[0].message.args[0]
      )
      nni.report_intermediate_result(123)
      assert "Intermediate result: 123  (Index 0)" in caplog.text
      nni.report_intermediate_result(456)
      assert "Intermediate result: 456  (Index 1)" in caplog.text
      nni.report_final_result(123)
      assert "Final result: 123" in caplog.text
  
imports: import pytest
  import nni
  from nni.trial import overwrite_intermediate_seq
  from nni.runtime.trial_command_channel import TrialCommandChannel, set_default_trial_command_channel, get_default_trial_command_channel
label_desc: Use image node_id 1 for calling a global function with example usage: test_standalone(caplog) without return types