def get_leaf_names_from_nodes(leaf_nodes):
    """

    Given a list of ete3.TreeNode objects, will give the node names for each one.

    :param leaf_nodes: List of ete3.TreeNode objects.
    :return: list of the names of the TreeNode objects.
    """
    leaf_names = list()
    for node in leaf_nodes:
        leaf_names.append(node.name)
    return leaf_names
