stage1 = all but the last 4 layers of pretrained_net
stage2 = the fourth layer from the end of pretrained net
stage3 = the third layer from the end of pretrained net
if the slicing notation causes you difficulties, you can try simple experiments, e.g.
fourth_from_end = list(range(10))[-4]
print(fourth_from_end)