@classmethod
def print_node_tree(cls, node, max_depth, follow_links=()):
    """Top-level function for printing node tree."""
    import warnings
    from aiida.common.warnings import AiidaDeprecationWarning
    warnings.warn(
        'class is deprecated and will be removed in `aiida-core==2.0.0`.',
        AiidaDeprecationWarning)
    from ete3 import Tree
    from aiida.cmdline.utils.common import get_node_summary
    from aiida.cmdline.utils import echo
    echo.echo(get_node_summary(node))
    tree_string = '({});'.format(cls._build_tree(node, max_depth=max_depth,
        follow_links=follow_links))
    tmp = Tree(tree_string, format=1)
    echo.echo(tmp.get_ascii(show_internal=True))
