docstr: Select features and annotation of the given sample.
docstr_tok: ["Select","features","and","annotation","of","the","given","sample","."]
code: def map_features(self, sample: Dict) -> Tuple[Dict, Dict]:
      """Select features and annotation of the given sample."""
      input_ = {
          f"{self._mix_name}_spectrogram": sample[
              f"{self._mix_name}_spectrogram"
          ]
      }
      output = {
          f"{instrument}_spectrogram": sample[
              f"{instrument}_spectrogram"
          ]
          for instrument in self._audio_params["instrument_list"]
      }
      return (input_, output)
  
imports: import os
  import time
  from os.path import exists
  from os.path import sep
  from typing import Any, Dict, List, Optional, Tuple
  import tensorflow
  from .audio.adapter import AudioAdapter
  from .audio.convertor import db_uint_spectrogram_to_gain, spectrogram_to_db_uint
  from .audio.spectrogram import compute_spectrogram_tf, random_pitch_shift, random_time_stretch
  from .utils.logging import logger
  from .utils.tensor import check_tensor_shape, dataset_from_csv, set_tensor_shape, sync_apply
label_desc: Use image node_id 11 for calling the DatasetBuilder obj's underlying member method code with example usage: obj.map_features(sample) and returns: input_,  output