class_docstr: Discrete randomly sampled Hyper-Parameter object.
class_docstr_tok: ["Discrete","randomly","sampled","Hyper-Parameter","object","."]
docstr: Return a list of all the valid values of the Parameter.
  
  :return: list of dicts {name: value}
docstr_tok: ["Return","a","list","of","all","the","valid","values","of","the","Parameter",".",":","return",":","list","of","dicts","{","name",":","value","}"]
code: def to_list(self):
      # type: () -> Sequence[Mapping[str, Any]]
      """
      Return a list of all the valid values of the Parameter.
  
      :return: list of dicts {name: value}
      """
      combinations = []
      for combination in self.values:
          single_option = {}
          for k, v in combination.items():
              if isinstance(v, Parameter):
                  single_option[k] = v.to_list()
              else:
                  single_option[k] = [
                      {k: v},
                  ]
  
          for state in product(*single_option.values()):
              combinations.append(
                  dict(kv for d in state for kv in d.items())
              )
  
      return combinations
  
imports: import sys
  from itertools import product
  from random import Random
  from typing import Mapping, Any, Sequence, Optional, Union
label_desc: Use image node_id 3 for calling the ParameterSet obj's underlying member method code with example usage: obj.to_list() and returns: combinations