code: def segment_content_handler():
      
      from ligo.lw.lsctables import (SegmentTable, SegmentDefTable,
                                     SegmentSumTable)
      from ligo.lw.ligolw import PartialLIGOLWContentHandler
  
      def _filter(name, attrs):
          return reduce(
              operator.or_,
              [table_.CheckProperties(name, attrs) for
               table_ in (SegmentTable, SegmentDefTable, SegmentSumTable)])
  
      return build_content_handler(PartialLIGOLWContentHandler, _filter)
docs: Build a `~xml.sax.handlers.ContentHandler` to read segment XML tables