Python classes and functions:
class a: def init: def funct(self, df): return a+b class b: def init: def funct(self,df): return c*d Main.py is pyspark file In main.py how can I write a custom decorator which will read funct() from each class and define respective decorator and execute in pyspark dynamically calling funct() method of each classes and pass respective parameters required for individual functions from spark data frame df