The correct function of stomata is: Stomata allow gases to enter and exit the leaf.
Stomata are small openings on the surfaces of leaves that facilitate the exchange of gases, specifically the intake of carbon dioxide for photosynthesis and the release of oxygen. They also play a role in transpiration, the process by which water vapor is released into the atmosphere.