def show_tooltip(content, view=None, location=-1, timeout=0):
    '''
    Shows a tooltip.

    @content
      The tooltip's content (minihtml).

    @view
      The view in which the tooltip should be shown. If `None`, the active view
      will be used if available.

    @location
      Text location at which the tooltip will be shown.

    @timeout
      If greater than 0, the tooltip will be autohidden after @timeout
      milliseconds.
    '''
    if not view:
        try:
            view = sublime.active_window().active_view()
        except __HOLE__ as e:
            return

    view.show_popup(content, location=location, max_width=500)

    if timeout > 0:
        def hide(current_id):
            global TOOLTIP_ID
            if TOOLTIP_ID == current_id:
                view.hide_popup()

        current_id = next(id_generator)
        after(timeout, lambda: hide(current_id))
dataset/ETHPy150Open guillermooo/dart-sublime-bundle/lib/notifications.py/show_tooltip