<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mention_to_tokens(mention, token_type="words", lowercase=False):
 """ Extract tokens from the mention :param mention: mention object. :param token_type: token type that wants to extract. :type token_type: str :param lowercase: use lowercase or not. :type lowercase: bool :return: The token list. :rtype: list """


    tokens = mention.context.sentence.__dict__[token_type]
    return [w.lower() if lowercase else w for w in tokens]