code: def min_ungap_length_discard(records, min_length):
      
      for record in records:
          if len(ungap_all(record)) >= min_length:
              yield record
docs: Discard any records that are shorter than min_length after removing gaps.