def __call__(self, fn):
        """Implement __call__ function for decorator.

        Args:
            fn (function): The decorated function.

        Returns:
            function: The custom decorator function.
        """

        def debug(app, *args, **kwargs):
            """Iterate over data, calling the decorated function for each value.

            Args:
                app (class): The instance of the App class "self".
            """

            data = fn(app, *args, **kwargs)
            app.tcex.log.debug(
                'function: "{}", args: "{}", kwargs: "{}"'.format(
                    self.__class__.__name__, vars(args), kwargs
                )
            )
            return data

        return debug
def __call__ ( self , fn ) : def debug ( app , * args , ** kwargs ) : data = fn ( app , * args , ** kwargs ) app . tcex . log . debug ( 'function: "{}", args: "{}", kwargs: "{}"' . format ( self . __class__ . __name__ , vars ( args ) , kwargs ) ) return data return debug
Implement __call__ function for decorator.

        Args:
            fn (function): The decorated function.

        Returns:
            function: The custom decorator function.