'Return the collection node for name from the module collection.
This will search a module collection node for a collection
node matching the given name.
:param modcol: A module collection node, see
:py:meth:`getmodulecol`.
:param name: The name of the node to return.'

def collect_by_name(self, modcol, name):

    if (modcol not in self._mod_collections):
        self._mod_collections[modcol] = list(modcol.collect())
    for colitem in self._mod_collections[modcol]:
        if (colitem.name == name):
            return colitem
