code: def _parse_ranges(ranges):
      
      for txt in ranges:
          if '-' in txt:
              low, high = txt.split('-')
          else:
              low, high = txt, txt
          yield int(low), int(high)
docs: Converts a list of string ranges to a list of [low, high] tuples.