code: def convert_yielded(yielded: _Yieldable) -> Future:
      """Convert a yielded object into a `.Future`.
  
      The default implementation accepts lists, dictionaries, and
      Futures. This has the side effect of starting any coroutines that
      did not start themselves, similar to `asyncio.ensure_future`.
  
      If the `~functools.singledispatch` library is available, this function
      may be extended to support additional types. For example::
  
          @convert_yielded.register(asyncio.Future)
          def _(asyncio_future):
              return tornado.platform.asyncio.to_tornado_future(asyncio_future)
  
      .. versionadded:: 4.1
  
      """
      if yielded is None or yielded is moment:
          return moment
      elif yielded is _null_future:
          return _null_future
      elif isinstance(yielded, (list, dict)):
          return multi(yielded)  # type: ignore
      elif is_future(yielded):
          return typing.cast(Future, yielded)
      elif isawaitable(yielded):
          return _wrap_awaitable(yielded)  # type: ignore
      else:
          raise BadYieldError("yielded unknown object %r" % (yielded,))
  
imports: import asyncio
  import builtins
  import collections
  from collections.abc import Generator
  import concurrent.futures
  import datetime
  import functools
  from functools import singledispatch
  from inspect import isawaitable
  import sys
  import types
  from tornado.concurrent import Future, is_future, chain_future, future_set_exc_info, future_add_done_callback, future_set_result_unless_cancelled
  from tornado.ioloop import IOLoop
  from tornado.log import app_log
  from tornado.util import TimeoutError
  import typing
  from typing import Union, Any, Callable, List, Type, Tuple, Awaitable, Dict, overload
label_desc: Use image node_id 14 for calling a global function with example usage: convert_yielded(yielded) and returns: moment, _null_future, multi, typing, _wrap_awaitable