code: def _patch_tornado():
      """
      If tornado is imported before nest_asyncio, make tornado aware of
      the pure-Python asyncio Future.
      """
      if "tornado" in sys.modules:
          import tornado.concurrent as tc  # type: ignore
  
          tc.Future = asyncio.Future
          if asyncio.Future not in tc.FUTURES:
              tc.FUTURES += (asyncio.Future,)
  
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 6 for calling a global function with example usage: _patch_tornado() without return types