def METHOD_NAME(use_transfer, file_path, filename, download_id, file_type, owner_ids=None):
    common_kwargs = {
        'mimetype': Format.from_format(file_type).mimetype,
        'content_disposition': 'attachment; filename="{fname}"'.format(fname=filename),
        'download_id': download_id,
        'expiry': (1 * 60 * 60),
        'owner_ids': owner_ids,
    }
    if use_transfer:
        expose_file_download(
            file_path,
            use_transfer=use_transfer,
            **common_kwargs
        )
    else:
        expose_cached_download(
            FileWrapper(open(file_path, 'rb')),
            file_extension=file_type,
            **common_kwargs
        )