def pprint_ast(node,
               include_attributes=INCLUDE_ATTRIBUTES_DEFAULT,
               indent=INDENT_DEFAULT,
               file=None):
    """
    Pretty-print an AST tree.

    Parameters
    ----------
    node : ast.AST
       Top-level node to render.
    include_attributes : bool, optional
        Whether to include node attributes.  Default False.
    indent : str, optional.
        Indentation string for nested expressions.  Default is two spaces.
    file : None or file-like object, optional
        File to use to print output.  If the default of `None` is passed, we
        use sys.stdout.
    """
    if file is None:
        file = sys.stdout

    print(
        pformat_ast(
            node,
            include_attributes=include_attributes,
            indent=indent
        ),
        file=file,
    )
def pprint_ast ( node , include_attributes = INCLUDE_ATTRIBUTES_DEFAULT , indent = INDENT_DEFAULT , file = None ) : if file is None : file = sys . stdout print ( pformat_ast ( node , include_attributes = include_attributes , indent = indent ) , file = file , )
Pretty-print an AST tree.

    Parameters
    ----------
    node : ast.AST
       Top-level node to render.
    include_attributes : bool, optional
        Whether to include node attributes.  Default False.
    indent : str, optional.
        Indentation string for nested expressions.  Default is two spaces.
    file : None or file-like object, optional
        File to use to print output.  If the default of `None` is passed, we
        use sys.stdout.