def METHOD_NAME(are_last, is_leaf, px):
    """Return a text line representing the open branches according to are_last.
    :param are_last: List of bools that say per level if we are the last node.
    :param is_leaf: says if the node to represent in this line has no children.
    :param px: Padding in x.
    Example (for is_leaf=True, px=6)::
      [True , False, True , True , True ] ->
      '│             │      │      ├──────╴'
    """
    if len(are_last) == 0:
        return ''
    prefix = ''.join((' ' if is_last else '│') + ' ' * px
                     for is_last in are_last[:-1])
    return (prefix   + ('└' if are_last[-1] else '├') +
            '─' * px + ('╴' if is_leaf      else '┐'))