Ask for advice - Can a public class/function be created in chatflow for use by other code nodes?

I’m not sure if Dify can write a method of a public class or a class like actual coding—for example, defining a function def validation_check(uid: str) at the start, and then directly using this code in subsequent nodes. Thank you for your help!