async def METHOD_NAME():
    """Test the `SmartQueue.has_unassigned_items()` method."""
    q = SmartQueue(async_iter([1, 2, 3]))
    with q.new_consumer() as c:
        await asyncio.sleep(0.1)
        assert q.has_unassigned_items()
        async for handle in c:
            assert not q.finished()
            await asyncio.sleep(0.1)
            if not q.has_unassigned_items():
                assert handle.data == 3
                break
        # All items are in progress, `has_unassigned_items()` should return `False`
        assert not q.has_unassigned_items()
        await q.reschedule_all(c)
        # Now the items are unassigned again
        assert q.has_unassigned_items()
        # Queue is still not finished
        assert not q.finished()
    await q.close()