async def METHOD_NAME():
    raw = io.BytesIO()
    buffered = io.BufferedReader(raw)
    async_file = trio.wrap_file(buffered)
    detached = await async_file.detach()
    assert isinstance(detached, AsyncIOWrapper)
    assert detached.wrapped is raw