def METHOD_NAME() -> None:
    """It should enter and exit the given context manager appropriately, and return its result."""
    class ContextManager:
        def __init__(self) -> None:
            self.entered = False
            self.exited = False
        async def __aenter__(self) -> str:
            self.entered = True
            return "Yay!"
        async def __aexit__(
            self, exc_type: object, exc_val: object, exc_tb: object
        ) -> None:
            self.exited = True
    context_manager = ContextManager()
    assert not context_manager.entered
    assert not context_manager.exited
    with subject.async_context_manager_in_thread(context_manager) as (result, _):
        assert context_manager.entered
        assert not context_manager.exited
        assert result == "Yay!"
    assert context_manager.exited