Eating pineapple

Has anyone else ever heard that eating pineapple can induce labor? I’ve heard so many people I know say them eating it induced their labor around 37 weeks or later so I’m wondering if its true. My doctor said if I don’t go into labor on my own within 2 weeks he’ll induce me so I’m trying to do things to go on my own. It just seems like such a crazy trick to go into labor