Can UDFs in pipeline builder return null?

I am trying to create a UDF which outputs a string and I want to make it so that if the input is None, the return can also be None. How do I do this in a UDF?

In Java UDFs you can define a field in your output schema as nulalble:
https://www.palantir.com/docs/foundry/transforms-java/user-defined-functions/#schema-definition-yaml

I also believe Python functions in Pipeline Builder (which I assume you are using) should be able to take nullable inputs and output None.

functions and python-functions are likely useful tags for this post as well!