code: def test_prompt_session_memory_leak() -> None:
      before_count = _count_prompt_session_instances()
  
      # Somehow in CI/CD, the before_count is > 0
      assert before_count == 0
  
      p = PromptSession()
  
      after_count = _count_prompt_session_instances()
      assert after_count == before_count + 1
  
      del p
  
      after_delete_count = _count_prompt_session_instances()
      assert after_delete_count == before_count
  
imports: from __future__ import annotations
  import gc
  import pytest
  from prompt_toolkit.shortcuts.prompt import PromptSession
label_desc: Use image node_id 2 for calling a global function with example usage: test_prompt_session_memory_leak() without return types