human
Complete the below
def clean_tmp():

    ''''Cleanup the SecureDrop temp directory. This is intended to be run
    as an automated cron job. We skip files that are currently in use to
    avoid deleting files that are currently being downloaded.'
    '''
 ... Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def file_in_use(fname):
        for proc in psutil.process_iter():
            try:
                open_files = proc.open_files()
                in_use = (False or any([(open_file.path == fname) for open_file in open_files]))
                if in_use:
                    break
            except psutil.NoSuchProcess:
                pass
        return in_use
    def listdir_fullpath(d):
        return [os.path.join(d, f) for f in os.listdir(d)]
    try:
        os.stat(config.TEMP_DIR)
    except OSError:
        pass
    else:
        for path in listdir_fullpath(config.TEMP_DIR):
            if (not file_in_use(path)):
                os.remove(path)
    return 0