'Merge the list of missing tool dependencies into the list of installed tool
dependencies.'

def merge_missing_tool_dependencies_to_installed_container(self, containers_dict):

    missing_td_container_root = containers_dict.get('missing_tool_dependencies', None)
    if missing_td_container_root:
        missing_td_container = missing_td_container_root.folders[0]
        installed_td_container_root = containers_dict.get('tool_dependencies', None)
        if installed_td_container_root:
            installed_td_container = installed_td_container_root.folders[0]
            installed_td_container.label = 'Tool    dependencies'
            for (index, td) in enumerate(missing_td_container.tool_dependencies):
                if (index == 0):
                    continue
                installed_td_container.tool_dependencies.append(td)
            installed_td_container_root.folders = [installed_td_container]
            containers_dict['tool_dependencies'] = installed_td_container_root
        else:
            root_container = containers_dict['missing_tool_dependencies']
            for sub_container in root_container.folders:
                sub_container.label = 'Tool    dependencies'
            containers_dict['tool_dependencies'] = root_container
    containers_dict['missing_tool_dependencies'] = None
    return containers_dict
