def normalize_height(height, err):
    if height in (FLOW, PACK):
        return (height, None)
    elif (isinstance(height, tuple) and len(height) == 2 and
            height[0] == RELATIVE):
        return height
    elif isinstance(height, int):
        return (GIVEN, height)
    raise err("height value %r is not one of fixed number of columns, "
        "'pack', ('relative', percentage of total height)"
        % (height,))
Split height into (height_type, height_amount).  Raise exception err
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/decoration.py/normalize_height