code: def write_manifest(
      output_path: Union[Path, str],
      target_manifest: List[dict],
      ensure_ascii: bool = True,
  ):
      """
      Write to manifest file
  
      Args:
          output_path (str or Path): Path to output manifest file
          target_manifest (list): List of manifest file entries
          ensure_ascii (bool): default is True, meaning the output is guaranteed to have all incoming non-ASCII characters escaped. If ensure_ascii is false, these characters will be output as-is.
      """
      with open(output_path, "w", encoding="utf-8") as outfile:
          for tgt in target_manifest:
              json.dump(tgt, outfile, ensure_ascii=ensure_ascii)
              outfile.write("\n")
  
imports: import json
  import os
  from collections import Counter
  from collections import OrderedDict
  from pathlib import Path
  from typing import Dict, List, Union
  import librosa
  import numpy
  from nemo.collections.asr.parts.utils.speaker_utils import audio_rttm_map, get_subsegments, get_uniqname_from_filepath, rttm_to_labels, segments_manifest_to_subsegments_manifest, write_rttm2manifest
  from nemo.utils.data_utils import DataStoreObject
label_desc: Use image node_id 16 for calling a global function with example usage: write_manifest(output_path, target_manifest, ensure_ascii) without return types