def get_context_return_types_hier_value(context_id, source, filter_func,
        codebase, context_level):
    return_types = get_context_return_types(context_id, source, filter_func,
            codebase, context_level)

    return_types_hier = []
    pk_set = set()

    for code_element in return_types:
        hierarchy = get_hierarchy(code_element)
        for code_element_h in hierarchy:
            if pk_set not in code_element_h.pk:
                return_types_hier.append(code_element_h)
                pk_set.add(code_element_h.pk)

    return return_types_hier
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/context.py/get_context_return_types_hier_value/swapped operands of `not in`