How to create nested function inside cuda (numba cuda)

I am working within parallel algorithms using numba cuda
I want some help to know how to call a numba function within other and the input and output will be save in shared memory