code: def decorate_callable(self, callable_):
          
          @wraps(callable_)
          def decorated(*args, **kwargs):
              # Extract timeout from request itself or use default for ioloop wrapper
              timeout = kwargs.get('timeout')
              return self.call_in_ioloop(callable_, args, kwargs, timeout)
  
          decorated.__doc__ = '\n\n'.join((
  """Wrapped async call. Will call in ioloop.
  
  This call will block until the original callable has finished running on the ioloop, and
  will pass on the return value. If the original callable returns a future, this call will
  wait for the future to resolve and return the value or raise the exception that the future
  resolves with.
  
  Original Callable Docstring
  ---------------------------
  """,
              textwrap.dedent(decorated.__doc__ or '')))
  
          return decorated
docs: Decorate a callable to use call_in_ioloop