def METHOD_NAME(context):
    style = {"text-align": TextAlign.CENTER, "vertical-align": VerticalAlign.BOTTOM}
    text = Text(text="some text")
    shape = IconBox(
        Box(),
        text,
    )
    shape.size(context)
    w, h = shape.sizes[0]
    bounding_box = Rectangle(0, 0, 10, 20)
    x, y, _, _ = shape.child_pos(style, bounding_box)
    assert x == (bounding_box.width - w) / 2
    assert y == bounding_box.height