(obj)
| 124 | owner: Optional[str] = "", |
| 125 | ): |
| 126 | def mainify(obj): |
| 127 | # Needed to allow dill to properly serialize the udf. Otherwise, clients will need to have a file with the same |
| 128 | # name as the original file defining the sfv. |
| 129 | if obj.__module__ != "__main__": |
| 130 | obj.__module__ = "__main__" |
| 131 | |
| 132 | def decorator(user_function): |
| 133 | udf_string = dill.source.getsource(user_function) |