nl: called with with an argument lambda function which returns result of the force_text function called with an argument text. define the method add_truncation_text with 3 arguments: self, text and truncate set to None.
code: def add_truncation_text ( self , text , truncate = None ) :