The purpose of this study is to learn if a surgical technique called intraoperative lymphatic mapping can accurately identify the lymph node that is at greatest risk if endometrial or cervical cancer spreads to the lymph nodes.