<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _is_group(token):
 """ sqlparse 0.2.2 changed it from a callable to a bool property """

    is_group = token.is_group
    if isinstance(is_group, bool):
        return is_group
    else:
        return is_group()