code: def _aio_run(coroutine: Any, raises: Exception | None = None) -> None:
      if raises is not None:
          with pytest.raises(raises):  # type: ignore[call-overload]
              asyncio.run(coroutine)
      else:
          assert len(asyncio.run(coroutine)) > 0
  
file_path: polars/py-polars/tests/unit/test_async.py
imports: from __future__ import annotations
  import asyncio
  import time
  from functools import partial
  from typing import Any, Callable
  import pytest
  import polars
  from polars.dependencies import gevent
label_desc: Use image node_id 1 for calling a global function with example usage: _aio_run(coroutine, raises) without return types