Finds a comprehension as a statement

def find_comprehension_as_statement(node):
    """Finds a comprehension as a statement"""
    return (
        isinstance(node, ast.Expr)
        and isinstance(node.value, (ast.ListComp,
                                    ast.DictComp,
                                    ast.SetComp))
    )