code: def _is_download(ending):
      
      list = [
              'PDF',
              'DOC',
              'TXT',
              'PPT',
              'XLSX',
              'MP3',
              'SVG',
              '7Z',
              'HTML',
              'TEX',
              'MPP',
              'ODT',
              'RAR',
              'ZIP',
              'TAR',
              'EPUB',
             ]
      list_regex = [
                    'PDF'
                   ]
      if ending in list:
          return True
      for file_type in list_regex:
          if re.search(re.escape(file_type), ending):
              return True
      return False
docs: Check if file ending is considered as download.