networkcommons.eval.shuffle_dict_keys

networkcommons.eval.shuffle_dict_keys(dictionary, items)

Shuffle the keys of a dictionary.

Parameters:
  • dictionary (dict) – The dictionary to shuffle.

  • items (list) – The list of items to shuffle.

Returns:

The dictionary with shuffled keys.

Return type:

dict