code: def get_dict_from_list(
      data_pathlist: List[str], uniqids: List[str]
  ) -> Dict[str, str]:
      """
      Create dictionaries from list of lines
  
      Args:
          data_pathlist (list): List of file paths
          uniqids (list): List of file IDs
      Returns:
          path_dict (dict): Dictionary containing file paths
      """
      path_dict = {}
      for line_path in data_pathlist:
          uniq_id = os.path.basename(line_path).split(".")[0]
          if uniq_id in uniqids:
              path_dict[uniq_id] = line_path
          else:
              raise ValueError(
                  f"uniq id {uniq_id} is not in wav filelist"
              )
      return path_dict
  
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 11 for calling a global function with example usage: get_dict_from_list(data_pathlist, uniqids) and returns: path_dict