async def METHOD_NAME(widget, probe, container_probe):
    """If the image view size is implicit, the image provides flexible size hints."""
    await probe.redraw("ImageView takes size hint from the image")
    assert probe.width == pytest.approx(144, abs=2)
    assert probe.height == pytest.approx(72, abs=2)
    assert probe.preserve_aspect_ratio
    # Clear the image; it's now an explicit sized empty image.
    widget.image = None
    await probe.redraw("Image has been cleared")
    assert probe.width == pytest.approx(0, abs=2)
    assert probe.height == pytest.approx(0, abs=2)
    assert not probe.preserve_aspect_ratio
    # Restore the image; Make the parent a flex row
    widget.image = "resources/sample.png"
    widget.style.flex = 1
    widget.parent.style.direction = ROW
    await probe.redraw("Image is in a row box")
    assert probe.width == pytest.approx(container_probe.width, abs=2)
    assert probe.height == pytest.approx(container_probe.height, abs=2)
    assert probe.preserve_aspect_ratio
    # Make the parent a flex column
    widget.parent.style.direction = COLUMN
    await probe.redraw("Image is in a column box")
    assert probe.width == pytest.approx(container_probe.width, abs=2)
    assert probe.height == pytest.approx(container_probe.height, abs=2)
    assert probe.preserve_aspect_ratio