code: def get_sub_range_list(
      target_range: List[float], source_range_list: List[List[float]]
  ) -> List[List[float]]:
      """
      Get the ranges that has overlaps with the target range from the source_range_list.
  
      Example:
          source range:
              |===--======---=====---====--|
          target range:
              |--------================----|
          out_range:
              |--------===---=====---==----|
  
      Args:
          target_range (list):
              A range (a start and end value pair) that defines the target range we want to select.
              target_range = [(start, end)]
          source_range_list (list):
              List containing the subranges that need to be selected.
              source_range = [(start0, end0), (start1, end1), ...]
      Returns:
          out_range (list):
              List containing the overlap between target_range and
              source_range_list.
      """
      if len(target_range) == 0:
          return []
      else:
          out_range: List[List[float]] = []
          for s_range in source_range_list:
              if is_overlap(s_range, target_range):
                  ovl_range = get_overlap_range(s_range, target_range)
                  out_range.append(ovl_range)
          return out_range
  
imports: import gc
  import json
  import math
  import os
  import shutil
  from copy import deepcopy
  from typing import Dict, List, Tuple, Union
  import numpy
  import omegaconf
  import soundfile
  import torch
  from pyannote.core import Annotation, Segment
  from tqdm import tqdm
  from nemo.collections.asr.data.audio_to_label import repeat_signal
  from nemo.collections.asr.parts.utils.longform_clustering import LongFormSpeakerClustering
  from nemo.collections.asr.parts.utils.offline_clustering import SpeakerClustering, get_argmin_mat, split_input_data
  from nemo.utils import logging
label_desc: Use image node_id 29 for calling a global function with example usage: get_sub_range_list(target_range, source_range_list) and returns: list, out_range