code: def filter(self, info, releases):
          
  
          # Make a copy of releases keys
          # as we may delete packages during iteration
          removed = 0
          versions = list(releases.keys())
          for version in versions:
              new_files = []
              for file_desc in releases[version]:
                  if self._check_match(file_desc):
                      removed += 1
                  else:
                      new_files.append(file_desc)
              if len(new_files) == 0:
                  del releases[version]
              else:
                  releases[version] = new_files
          logger.debug(f"{self.name}: filenames removed: {removed}")
docs: Remove files from `releases` that match any pattern.