code: def get_speaker_ids(
      sess_idx: int,
      speaker_samples: dict,
      permutated_speaker_inds: list,
  ) -> List[str]:
      """
      Randomly select speaker IDs from the loaded manifest file.
  
      Args:
          sess_idx (int): Session index in integer.
          speaker_samples (dict): Dictionary mapping speaker ID to their list of samples.
          permutated_speaker_inds (list): List of permutated speaker indices.
  
      Returns:
          speaker_ids (list): List of speaker IDs
      """
      all_speaker_ids = list(speaker_samples.keys())
      idx_list = permutated_speaker_inds[sess_idx, :]
      speaker_ids = [all_speaker_ids[i] for i in idx_list]
      return speaker_ids
  
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 12 for calling a global function with example usage: get_speaker_ids(sess_idx, speaker_samples, permutated_speaker_inds) and returns: speaker_ids