hich definition is the best for “semipermeable membrane”?

It is a barrier that prevents materials from moving from one side to the other.

It is a barrier that allows materials to move freely from one side to the other.

It is a barrier with tiny openings that let some, but not all, materials pass through.

It is a barrier that helps materials move from one side to the other.