just try to run it with the latest openai library. you will get a bunch of errors because the library has evolved since that example was written.