Definition of the ali baba are the fictional woodcutter who discovered that open sesame' opened a cave in the Arabian Nights' Entertainment .