def lex_ident(node_syn, pred_syn, gold_syn):
    """
    1. check if the predicted synset's lexname equals to the gold synset's name
    2. check if the predicted synset's lexname is in the set of its wordnet hypernyms' lexnames (including hypernyms/instance_hypernyms)
    """
    pred_lex = pred_syn.lexname()
    gold_lex = gold_syn.lexname()

    lex_ident_dev = pred_lex == gold_lex
    lex_ident_wn = pred_lex in [x.lexname() for x in node_syn.instance_hypernyms()] \
                   or pred_lex in [x.lexname() for x in node_syn.hypernyms()]
    return lex_ident_dev, lex_ident_wn, pred_lex, gold_lex