code: def apply(loop=None):
      """Patch asyncio to make its event loop reentrant."""
      _patch_asyncio()
      _patch_policy()
      _patch_task()
      _patch_tornado()
  
      loop = loop or asyncio.get_event_loop()
      _patch_loop(loop)
  
file_path: catboost/contrib/python/nest-asyncio/nest_asyncio.py
imports: import asyncio
  import asyncio.events
  import os
  import sys
  import threading
  from contextlib import contextmanager, suppress
  from heapq import heappop
label_desc: Use image node_id 1 for calling a global function with example usage: apply(loop) without return types