For example if you have the following dictionary:
{1:2, 2:3}
I want to get the following list:
[1, 1, 2, 2, 2]
That is: there are as many "1" as values indicates the value of the key "1" (2) and as many "2" as values indicates the value of the key "2" (3).