def METHOD_NAME(self, api, node, indent=0, max_depth=0):
    fmt = f"{{space}}{{path:{64-indent*2}s}}{{result:6}}{{node_id}}"
    node_id = node['id']
    result = node['result'] or '----'
    line = fmt.format(
        space='  '*indent,
        path='.'.join(node['path']),
        result=result,
        node_id=node_id,
    )
    color = self.COLOR_RESULT.get(result)
    if color:
        line = self._color(line, color)
    print(line)
    child_nodes = api.get_nodes({'parent': node_id})
    if max_depth and indent == max_depth:
        return
    for child in child_nodes:
        self.METHOD_NAME(api, child, indent+1, max_depth)