code: def build_speaker_samples_map(manifest: dict) -> dict:
      """
      Build a dictionary for mapping speaker ID to their list of samples
  
      Returns:
          speaker_samples (Dict[list]):
              Dictionary mapping speaker ID to their list of samples
      """
      speaker_samples = defaultdict(list)
      logging.info("Building speaker to samples map...")
      for sample in tqdm(manifest, total=len(manifest)):
          speaker_id = sample["speaker_id"]
          speaker_samples[speaker_id].append(sample)
      return speaker_samples
  
imports: import copy
  import os
  import shutil
  from collections import defaultdict
  from typing import IO, Dict, List, Optional, Tuple
  import numpy
  import torch
  from scipy.stats import beta, gamma
  from tqdm import tqdm
  from nemo.collections.asr.parts.preprocessing.perturb import AudioAugmentor
  from nemo.collections.asr.parts.preprocessing.segment import AudioSegment
  from nemo.collections.asr.parts.utils.manifest_utils import get_ctm_line, read_manifest, write_ctm, write_manifest, write_text
  from nemo.collections.asr.parts.utils.speaker_utils import labels_to_rttmfile
  from nemo.utils import logging
label_desc: Use image node_id 13 for calling a global function with example usage: build_speaker_samples_map(manifest) and returns: speaker_samples