Thank you for your advice. I deleted that line and set the environment variable outside the python, session. And I reboot VSCode, Now it captures UDP correctly.
And my camera supports UDP. Actually I already check it up with VLC Media Player Network Streaming via RTSP udp.
Here is the result of setting the environment variable.