code: def indices_within_segments(times, segment_files, ifo=None, segment_name=None):
      
      veto_segs = segmentlist([])
      indices = numpy.array([], dtype=numpy.uint32)
      for veto_file in segment_files:
          veto_segs += select_segments_by_definer(veto_file, segment_name, ifo)
      veto_segs.coalesce()
  
      start, end = segments_to_start_end(veto_segs)
      if len(start) > 0:
          idx = indices_within_times(times, start, end)
          indices = numpy.union1d(indices, idx)
  
      return indices, veto_segs.coalesce()
docs: Return the list of indices that should be vetoed by the segments in the
      list of veto_files.
  
      Parameters
      ----------
      times: numpy.ndarray of integer type
          Array of gps start times
      segment_files: string or list of strings
          A string or list of strings that contain the path to xml files that
          contain a segment table
      ifo: string, optional
          The ifo to retrieve segments for from the segment files
      segment_name: str, optional
          name of segment
      Returns
      -------
      indices: numpy.ndarray
          The array of index values within the segments
      segmentlist:
          The segment list corresponding to the selected time.