def METHOD_NAME(pid, record, _record_file_factory=None, **kwargs):
    """File download view for a given EOS uri."""
    if current_app.config.get('CERNOPENDATA_DISABLE_DOWNLOADS', False):
        abort(503)
    path = kwargs.get('filepath', "")
    return eos_send_file_or_404(path)