code: def test_deprecation():
      with pytest.deprecated_call():
          deprecation("foo")
  
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 2 for calling a global function with example usage: test_deprecation() without return types