import ast


def parse(path):
    """parse a file at path and returns an AST tree structure

    Args:
        path (str): filepath of the file to parse
    Returns:
        ast.Module: ast tree of the parsed file
    """

    with open(path) as source_code:
        return ast.parse(source_code.read(), path)