Yeah, you string a cord from the entrance and put little plastic arrows on it to point the way out.
Hopefully you tie the cord properly and don’t lose it.
I don’t cave dive, but have talked to a lot of them. Im a rescue diver, adv, and nitrox but dont teach. Dont want to teach either but do help on occasion.
It gets old, always diving with a crowd. It's been many years since I've done it.