def get_leaf_info(lines):
    """ If there is information about the leaves in the file,
    retrieve and return it

    Parameters
    ----------
    lines : [str]
        file content without comments

    Returns
    -------
    [str]
        list with leaf names
    """

    leaves = list(filter(lambda x: x.startswith("["), lines))
    if leaves:
        leaves = leaves[0].strip()
        leaves = leaves.replace("[", "").replace("]", "").split(",")
        leaves = [leaf.lstrip() for leaf in leaves]
    return leaves