This graphic shows a Heimlich valve which allows the unidirectional flow of air away from the leak. The rubber flap in between both ends functions as the one way valve.
Modified from: Health Education: Heimlich Valve for Chest Drainage. Mount Carmel 2014.