human
Give me a the Python program you requested given the following:
Complete the below
def clear(type, package, future=False):

    ''''Clears an event from the tracker, possibly in the future. Future clears
    are useful for \'install\' and \'post_upgrade\' events since we don\'t have a
    natural event to clear the data on. Thus we set a timeout for 5 seconds in
    the future.
    :param type:
    The type of event to clear
    :param package:
    The name of the package to clear the event info for
    :param future:
    If the clear should happen in 5 seconds, instead of immediately'
    '''
assistant
#Here is the Python program you requested.
    def do_clear():
        _lock.acquire()
        del _tracker[type][package]
        _lock.release()
    if future:
        sublime.set_timeout(do_clear, 5000)
    else:
        do_clear()