'Return a folder hierarchy containing invalid tool dependencies.'

def build_invalid_tool_dependencies_root_folder(self, folder_id, invalid_tool_dependencies_dict):

    label = 'Invalid    tool    dependencies'
    if invalid_tool_dependencies_dict:
        invalid_tool_dependency_id = 0
        folder_id += 1
        invalid_tool_dependencies_root_folder = utility_container_manager.Folder(id=folder_id, key='root', label='root', parent=None)
        folder_id += 1
        invalid_tool_dependencies_folder = utility_container_manager.Folder(id=folder_id, key='invalid_tool_dependencies', label=label, parent=invalid_tool_dependencies_root_folder)
        invalid_tool_dependencies_root_folder.folders.append(invalid_tool_dependencies_folder)
        for (td_key, requirements_dict) in invalid_tool_dependencies_dict.items():
            folder_id += 1
            invalid_tool_dependency_id += 1
            try:
                name = requirements_dict['name']
                type = requirements_dict['type']
                version = requirements_dict['version']
                error = requirements_dict['error']
            except Exception as e:
                name = 'unknown'
                type = 'unknown'
                version = 'unknown'
                error = str(e)
            key = self.generate_tool_dependencies_key(name, version, type)
            label = ('Version    <b>%s</b>    of    the    <b>%s</b>    <b>%s</b>' % (version, name, type))
            folder = utility_container_manager.Folder(id=folder_id, key=key, label=label, parent=invalid_tool_dependencies_folder)
            itd = InvalidToolDependency(id=invalid_tool_dependency_id, name=name, version=version, type=type, error=error)
            folder.invalid_tool_dependencies.append(itd)
            invalid_tool_dependencies_folder.folders.append(folder)
    else:
        invalid_tool_dependencies_root_folder = None
    return (folder_id, invalid_tool_dependencies_root_folder)
