'Yield best container description of supplied types matching tool info.'

def find_best_container_description(self, enabled_container_types, tool_info):

    for container_resolver in self.container_resolvers:
        if hasattr(container_resolver, 'container_type'):
            if (container_resolver.container_type not in enabled_container_types):
                continue
        container_description = container_resolver.resolve(enabled_container_types, tool_info)
        log.info(('Checking    with    container    resolver    [%s]    found    description    [%s]' % (container_resolver, container_description)))
        if container_description:
            assert (container_description.type in enabled_container_types)
            return container_description
    return None
