random_weighted_sample
open_file
Enter search terms or a module, class or function name.
Return a single element from a weighted sample.
The input is a dictionary of items with weights as values.