code: def choice(self, candidates, mutator, model, index):
      return self.random_state.choice(candidates)
  
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 _RandomSampler obj's underlying member method code with example usage: obj.choice(candidates, mutator, model, index) and returns: self