class_docstr: Special channel used when trial is running standalone,
  without tuner or NNI manager.
code: def send_metric(
      self,
      type: Literal["PERIODICAL", "FINAL"],
      parameter_id: int | None,  # pylint: disable=redefined-builtin
      trial_job_id: str,
      sequence: int,
      value: TrialMetric,
  ) -> None:
      if type == "FINAL":
          _logger.info("Final result: %s", value)
      elif type == "PERIODICAL":
          _logger.info(
              "Intermediate result: %s  (Index %s)", value, sequence
          )
      else:
          _logger.error("Unexpected metric type: %s", type)
  
file_path: nni/nni/runtime/trial_command_channel/standalone.py
imports: from __future__ import annotations
  import logging
  import warnings
  import colorama
  from typing_extensions import Literal
  from nni.typehint import TrialMetric
  from .base import TrialCommandChannel, ParameterRecord
label_desc: Use image node_id 2 for calling the StandaloneTrialCommandChannel obj's underlying member method code with example usage: obj.send_metric(type, parameter_id, trial_job_id, sequence, value) without return types