code: def min_length_discard(records, min_length):
      
      logging.info('Applying _min_length_discard generator: '
                   'discarding records shorter than %d.', min_length)
      for record in records:
          if len(record) < min_length:
              logging.debug('Discarding short sequence: %s, length=%d',
                  record.id, len(record))
          else:
              yield record
docs: Discard any records that are shorter than min_length.