Do interface, do function in it. However you need to implement that function (make its code) in every blueprint you want to work with interface.
Then from outside of that blueprint with interface, you get its reference then cast to INTERFACE instead of blueprint class.