class_docstr: A Callable Baselines class that returns a sample from the Cartesian product of
  the inputs' available baselines.
  
  Args:
      baseline_values (List or Dict): A list or dict of lists containing
          the possible values for each feature. If a dict is provided, the keys
          can a string of the feature name and the values is a list of available
          baselines. The keys can also be a tuple of strings to group
          multiple features whose baselines are not independent to each other.
          If the key is a tuple, the value must be a list of tuples of
          the corresponding values.
class_docstr_tok: ["A","Callable","Baselines","class","that","returns","a","sample","from","the","Cartesian","product","of","the","inputs","'","available","baselines",".","Args",":","baseline_values","(","List","or","Dict",")",":","A","list","or","dict","of","lists","containing","the","possible","values","for","each","feature",".","If","a","dict","is","provided",",","the","keys","can","a","string","of","the","feature","name","and","the","values","is","a","list","of","available","baselines",".","The","keys","can","also","be","a","tuple","of","strings","to","group","multiple","features","whose","baselines","are","not","independent","to","each","other",".","If","the","key","is","a","tuple",",","the","value","must","be","a","list","of","tuples","of","the","corresponding","values","."]
code: def sample(self) -> Union[List[Any], Dict[str, Any]]:
      baselines = [
          random.choice(baseline_list)
          for baseline_list in self.baseline_values
      ]
  
      if not self.dict_keys:
          return baselines
  
      dict_baselines = {}
      for key, val in zip(self.dict_keys, baselines):
          if not isinstance(key, tuple):
              key, val = (key,), (val,)
  
          for k, v in zip(key, val):
              dict_baselines[k] = v
  
      return dict_baselines
  
imports: import random
  from typing import Any, Dict, List, Tuple, Union
label_desc: Use image node_id 2 for calling the ProductBaselines obj's underlying member method code with example usage: obj.sample() and returns: dict_baselines, baselines