code: def _is_group(token):
      
      is_group = token.is_group
      if isinstance(is_group, bool):
          return is_group
      else:
          return is_group()
docs: sqlparse 0.2.2 changed it from a callable to a bool property