code: def test_ensure_event_loop():
      loop = ensure_event_loop()
  
      async def inner():
          return asyncio.get_running_loop()
  
      inner_sync = run_sync(inner)
      assert inner_sync() == loop
  
file_path: jupyter_core/tests/test_utils.py
imports: from __future__ import annotations
  import asyncio
  import os
  import tempfile
  import pytest
  from jupyter_core.utils import deprecation, ensure_async, ensure_dir_exists, ensure_event_loop, run_sync
label_desc: Use image node_id 6 for calling a global function with example usage: test_ensure_event_loop() and returns: asyncio