To check, whether the change of permission in needed for the triton_python_backend_stub file, the python backend tries to run it without any arguments, and then checks the exit code. See here. However ...
This is a clean-room Python implementation of chmod behavior, compatible with GNU chmod for most use cases. It does not include SELinux, ACL, or filesystem-specific extensions.