code: def filter_record(self, record):
          
          quality_scores = record.letter_annotations['phred_quality']
  
          mean_score = mean(quality_scores)
          if mean_score >= self.min_mean_score:
              return record
          else:
              raise FailedFilter(mean_score)
docs: Filter a single record