use it as an argument for the call to the function force_text, return the result. define the method as_text with 3 arguments: self, attrs set to None and unpacked dictionary kwargs.
def as_text ( self , attrs = None , ** kwargs ) :