def MakeFrame(ea, lvsize, frregs, argsize):
    func = idaapi.get_func(ea)
    if func is None:
        return -1

    frameid = idaapi.add_frame(func, lvsize, frregs, argsize)

    if not frameid:
        if not idaapi.set_frame_size(func, lvsize, frregs, argsize):
            return -1

    return func.frame
Make function frame
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/MakeFrame