class_docstr: A mutator that can be dry run.
  
  :class:`StationaryMutator` invoke :class:`StationaryMutator.dry_run` to predict choice candidates,
  such that the mutator simplifies to some static choices within `simplify()`.
  This could be convenient to certain algorithms which do not want to handle dynamic samplers.
class_docstr_tok: ["A","mutator","that","can","be","dry","run",".",":","class",":","`","StationaryMutator","`","invoke",":","class",":","`","StationaryMutator.dry_run","`","to","predict","choice","candidates",",","such","that","the","mutator","simplifies","to","some","static","choices","within","`","simplify","(",")","`",".","This","could","be","convenient","to","certain","algorithms","which","do","not","want","to","handle","dynamic","samplers","."]
docstr: Simplify this mutator to a number of static choices. Invokes :meth:`StationaryMutator.dry_run`.
  
  Must be wrapped in a ``bind_model`` context.
code: def leaf_mutables(
      self, is_leaf: Callable[[Mutable], bool]
  ) -> Iterable[LabeledMutable]:
      """Simplify this mutator to a number of static choices. Invokes :meth:`StationaryMutator.dry_run`.
  
      Must be wrapped in a ``bind_model`` context.
      """
      assert (
          self.model is not None
      ), "Mutator must be bound to a model before calling `simplify()`."
      choices, model = self.dry_run(self.model)
      self._dry_run_choices = MutableDict(choices)
      yield from self._dry_run_choices.leaf_mutables(is_leaf)
      self.model = model
  
imports: from __future__ import annotations
  from contextlib import contextmanager
  from typing import Any, Callable, Iterable, List, Optional, TYPE_CHECKING, Iterator
  from numpy.random import RandomState
  from nni.mutable import LabeledMutable, MutableList, MutableDict, Categorical, Mutable, SampleValidationError, Sample, SampleMissingError, label_scope, auto_label, frozen_context
  from .space import ModelStatus
label_desc: Use image node_id 2 for calling the StationaryMutator obj's underlying member method code with example usage: obj.leaf_mutables(is_leaf) without return types