We know that sauropods had such a birdlike lung because many bones of the chest cavity have big openings, called pneumatic fenestrae, where the air sacs extended deep inside. They are exactly the same structures in modern birds, and they can only be made by air sacs.