code: def parse_wspecifier(wspecifier: str) -> Dict[str, str]:
      """Parse wspecifier to dict
  
      Examples:
          >>> parse_wspecifier('ark,scp:out.ark,out.scp')
          {'ark': 'out.ark', 'scp': 'out.scp'}
  
      """
      ark_scp, filepath = wspecifier.split(":", 1)
      if ark_scp not in ["ark", "scp,ark", "ark,scp"]:
          raise ValueError(
              "{} is not allowed: {}".format(ark_scp, wspecifier)
          )
      ark_scps = ark_scp.split(",")
      filepaths = filepath.split(",")
      if len(ark_scps) != len(filepaths):
          raise ValueError(
              "Mismatch: {} and {}".format(ark_scp, filepath)
          )
      spec_dict = dict(zip(ark_scps, filepaths))
      return spec_dict
  
imports: from pathlib import Path
  from typing import Dict
  import h5py
  import kaldiio
  import numpy
  import soundfile
  from espnet.utils.cli_utils import assert_scipy_wav_style
  from espnet.utils.io_utils import SoundHDF5File
label_desc: Use image node_id 3 for calling a global function with example usage: parse_wspecifier(wspecifier) and returns: spec_dict