A pulmonary function test helps doctors to evaluate the health condition of the lungs.