Unknown container - VW golf 1987

Hello! Just got this VW Mk2 1.3 CL Carb

I spotted this hose not going anywhere, then I looked further and saw that this yellow container was very loose and the rubber looked disintegrated at the intersection.

What is this yellow container and what is the purpose of it?

Thanks for helping, it really means a lot :)