code: def __write_sample(
      dest,
      file_id,
      count,
      file_count,
      sample_rate,
      audio,
      duration,
      transcript,
  ):
      """
      Writes one slice to the given target directory.
      Args:
          dest: the destination directory
          file_id: name of the transcript/audio file for this block
          count: the count of segments in the file so far
          file_count: the total number of filse processed so far
          sample rate: sample rate of the audio data
          audio: audio data of the current sample
          duration: audio duration of the current sample
          transcript: transcript of the current sample
      """
      partition = __partition_name(file_count)
      audio_path = os.path.join(
          dest, partition, f"{file_id}_{count:03}.wav"
      )
  
      # Write audio
      wavfile.write(audio_path, sample_rate, audio)
  
      # Write transcript info
      transcript = {
          "audio_filepath": audio_path,
          "duration": duration,
          "text": transcript,
      }
  
      # Append to manifest
      manifest_path = os.path.join(dest, f"manifest_{partition}.json")
      with open(manifest_path, "a") as f:
          json.dump(transcript, f)
          f.write("\n")
  
file_path: NeMo/scripts/dataset_processing/process_fisher_data.py
imports: import argparse
  import glob
  import json
  import os
  import re
  from math import ceil, floor
  import numpy
  import scipy.io.wavfile
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: __write_sample(dest, file_id, count, file_count, sample_rate, audio, duration, transcript) without return types