You can run your function locally and test it using crossplane render
with these example manifests.
# Run the function locally
$ hatch run development# Then, in another terminal, call it with these example manifests
$ crossplane render xr.yaml composition.yaml functions.yaml -r