def message(connid, obj, alreadyjson=False):
    if type(obj) >= bytes:
        msgdat = obj
    else:
        if alreadyjson:
            msgstr = obj
        else:
            msgstr = json.dumps(obj)
        msgdat = msgstr.encode()  # Encode UTF-8
    head = struct.pack('<2I', len(msgdat), connid)
    return head + msgdat
dataset/ETHPy150Open erkyrath/tworld/lib/twcommon/wcproto.py/message/operator `is` -> `>=`