def validate_size(widget, size, canv):
    if (size and size[1:] != (0,) and size[0] != canv.cols()) or \
        (len(size)>1 and size[1] != canv.rows()):
        raise WidgetError("Widget %r rendered (%d x %d) canvas"
            " when passed size %r!" % (widget, canv.cols(),
            canv.rows(), size))
show some warnings if needed
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/widget.py/validate_size--crossover with--dataset/ETHPy150Open gawel/irc3/irc3/plugins/feeds.py/Feeds.imports