Is there a function in VEXcode V5 - python with similar functionality to "task::yield();" from VEXcode Pro V5?

Just use sleep (or wait, same thing), wait(1, MSEC) is the closest you can get, there is no binding for yield.

You may also find that just having no delay (sleep etc.) in the loop works, I think I have a hook that calls yield for each loop iteration so python doesn’t ever block the scheduler.

but yield is rarely needed even in C++ code, what’s the actual use case ?