We recommend this type of hide-box, btw- available from various brands, including this one from Reptile Basics for illustration: https://www.reptilebasics.com/medium-hide-box
As Homebody mentioned, the open-ended tree bark tunnels are nice "cage furniture" only, but no snake will feel secure in that- & if they don't feel secure (able to hide from predators), most stop eating. They need a minimum of at least 2 equal hides like this- they come in various sizes- so measure your snake when he's curled up & don't buy a much bigger hide- they prefer to feel "back pressure" like being in a cave, where predators cannot sneak up on them.
If the hides are a little too large (to "grow into") you can stuff some crumpled paper inside one end so they feel more snug. Our houses with big front doors, multiple doorways/windows, & high ceilings that look dramatic in magazines don't impress snakes one bit- they want the total opposite.![]()