code: def write_overlap_segments(
      outfile, AUDIO_RTTM_MAP, uniq_id, overlap_range_list, decimals=5
  ):
      """
      Write the json dictionary into the specified manifest file.
  
      Args:
          outfile:
              File pointer that indicates output file path.
          AUDIO_RTTM_MAP (dict):
              Dictionary containing the input manifest information
          uniq_id (str):
              Unique file id
          overlap_range_list (list):
              List containing overlapping ranges between target and source.
          decimals (int):
              Number of decimals to round the offset and duration values.
      """
      audio_path = AUDIO_RTTM_MAP[uniq_id]["audio_filepath"]
      for stt, end in overlap_range_list:
          meta = {
              "audio_filepath": audio_path,
              "offset": round(stt, decimals),
              "duration": round(end - stt, decimals),
              "label": "UNK",
              "uniq_id": uniq_id,
          }
          json.dump(meta, outfile)
          outfile.write("\n")
  
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 20 for calling a global function with example usage: write_overlap_segments(outfile, AUDIO_RTTM_MAP, uniq_id, overlap_range_list, decimals) without return types