A check valve is a two-port valve that allows a fluid (liquid or gas) to flow in only one direction.
It automatically opens when the upstream pressure is greater than the cracking pressure and closes to prevent backflow when the pressure drops or reverses.
The valve in the image appears to be a swing check valve, which uses a hinged disc or "flapper" that swings open with forward flow and closes to block reverse flow.