'Determine if ancestor_tool_dependencies is the same as or a subset of current_tool_dependencies.'

def compare_tool_dependencies(self, ancestor_tool_dependencies, current_tool_dependencies):

    if (len(ancestor_tool_dependencies) <= len(current_tool_dependencies)):
        for (ancestor_td_key, ancestor_requirements_dict) in ancestor_tool_dependencies.items():
            if (ancestor_td_key in current_tool_dependencies):
                continue
            else:
                return self.NOT_EQUAL_AND_NOT_SUBSET
        if (len(ancestor_tool_dependencies) == len(current_tool_dependencies)):
            return self.EQUAL
        else:
            return self.SUBSET
    return self.NOT_EQUAL_AND_NOT_SUBSET
