code: def is_overlapped(end1, start2):
      """Returns True if the two segments overlap
  
      Arguments
      ---------
      end1 : float
          End time of the first segment.
      start2 : float
          Start time of the second segment.
      """
  
      if start2 > end1:
          return False
      else:
          return True
  
file_path: speechbrain/recipes/AMI/Diarization/ami_prepare.py
imports: import os
  import logging
  import xml.etree.ElementTree
  import glob
  import json
  from ami_splits import get_AMI_split
  from speechbrain.dataio.dataio import load_pkl, save_pkl
label_desc: Use image node_id 4 for calling a global function with example usage: is_overlapped(end1, start2) and returns: False, True