amniocentesis test

Chelsie
My doctor wants to perform an amniocentesis test to check my baby girls lungs. I've been in labor for a while now and no changes to my cervix. I am 80% effaced and 2cm dilated. She wants to do this test and then take the baby as it's putting a strain on my body... has anyone had it done? Any information about it would be greatly appreciated !