async def METHOD_NAME(widget, probe, container_probe):
    """If the image width is explicit, the image view will resize preserving aspect ratio."""
    # Explicitly set width
    widget.style.width = 200
    await probe.redraw("Image has explicit width")
    assert probe.width == pytest.approx(200, abs=2)
    assert probe.height == pytest.approx(100, 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(200, 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(200, 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(200, abs=2)
    assert probe.height == pytest.approx(container_probe.height, abs=2)
    assert probe.preserve_aspect_ratio