def METHOD_NAME(make_napari_viewer):
    """Test layers removed on close."""
    viewer = make_napari_viewer()
    # add layers
    viewer.add_image(np.random.random((30, 40)))
    viewer.add_image(np.random.random((50, 20)))
    assert len(viewer.layers) == 2
    viewer.close()
    # check layers have been removed
    assert len(viewer.layers) == 0