def SetFchunkAttr(ea, attr, value):
    if attr in [ FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER ]:
        chunk = idaapi.get_fchunk(ea)
        if chunk:
            _IDC_SetAttr(chunk, _FUNCATTRMAP, attr, value)
            return idaapi.update_func(chunk)
    return 0
Returns all labels
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetFchunkAttr--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/trello/cards.py/Card.labels