It is stressful for the snake and can actually make a shed worse.

Make a humid hide instead. Use a clean sponge, well rinsed, and slightly damp then put the sponge in a hide. Then put everything into the snake's cage. The hide will be very humid if you keep the sponge damp, and the snake can go into the humid hide when it needs to. Some people use sphagnum moss instead of a sponge. It works either way. I usually put the sponge on a rock so that the moisture doesn't leach into the substrate.

David