code: def is_tornado_coroutine(func):
      
      if 'tornado.gen' not in sys.modules:
          return False
      gen = sys.modules['tornado.gen']
      if not hasattr(gen, "is_coroutine_function"):
          # Tornado version is too old
          return False
      return gen.is_coroutine_function(func)
docs: Return whether *func* is a Tornado coroutine function.
      Running coroutines are not supported.