Maybe you need to include the CUDAContext.h header 32.
Note that it is a function, not a variable, so you’re missing the ().
In general, I would recommend to just put the function name you’re looking for into the C++ doc search box if you cannot find something from Python to find the right headers. (Which is not to say you should have done it this time, but to help you solve problems in the future.)
Best regards
Thomas