def GetFrame(ea):
    frame = idaapi.get_frame(ea)

    if frame:
        return frame.id
    else:
        return None
Get ID of function frame structure
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetFrame