def METHOD_NAME(self, socket_patches):
    expected = {"modelName": b"model_name", "modelPath": b"model_path",
                "batchSize": 1, "handler": b"handler", "ioFileDescriptor": b"0123456789"}
    socket_patches.socket.recv.side_effect = [
        b"L",
        b"\x00\x00\x00\x0a", b"model_name",
        b"\x00\x00\x00\x0a", b"model_path",
        b"\x00\x00\x00\x01",
        b"\x00\x00\x00\x07", b"handler",
        b"\xFF\xFF\xFF\xFF",
        b"\x00\x00\x00\x0a", b"0123456789"
    ]
    cmd, ret = codec.retrieve_msg(socket_patches.socket)
    assert cmd == b"L"
    assert ret == expected