How to modify UVs of supplied texture in Function

Bumping this question because I run into the same problem again. This time I’m doing some gradient mapping in a function and I need to supply the function with gradient texture and then modify it’s UV’s. Still can’t figure out how to do that.

Here is a screenshot of what I’m talking about:

Any help would be appreciated.