code: def test_gevent_collect_async_with_hub(
      get_result: Callable[[], Any], raises: Exception | None
  ) -> None:
      _hub = gevent.get_hub()
  
      def main() -> Any:
          return get_result().get()
  
      _gevent_run(main, raises)
  
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 8 for calling a global function with example usage: test_gevent_collect_async_with_hub(get_result, raises) and returns: get_result