class_docstr: Mock a trial command channel for evaluator debugging.
class_docstr_tok: ["Mock","a","trial","command","channel","for","evaluator","debugging","."]
code: def __init__(self, model: ExecutableModelSpace):
      self.model = model
  
imports: from __future__ import annotations
  import logging
  from contextlib import contextmanager
  from typing import Any, Callable, Iterator, Iterable, Generator, TYPE_CHECKING, cast
  from typing_extensions import Literal
  import nni
  from nni.common.serializer import is_traceable, SerializableObject
  from nni.mutable import Mutable, Sample, LabeledMutable, SampleValidationError
  from nni.mutable.mutable import _mutable_equal
  from nni.runtime.trial_command_channel import TrialCommandChannel, set_default_trial_command_channel, get_default_trial_command_channel
  from nni.typehint import ParameterRecord, TrialMetric, Parameters
label_desc: Use image node_id 1 to create a new _EvaluatorMockTrialCommandChannel object from inherited base classes: TrialCommandChannel with example: obj = _EvaluatorMockTrialCommandChannel(model)