@YQ The error message "ModuleNotFoundError: No module named 'azure.ai'" indicates that the Azure Form Recognizer module is not installed in your environment. To resolve this issue, you can try to install the Azure Form Recognizer module by running the following command in your terminal:
pip install azure-ai-formrecognizer==3.2.0
If you still face the same issue, you can try to create a new environment and install the Azure Form Recognizer module in the new environment. You can open your code in the VSCode and run the sample.