class_docstr: Instrument based filter and mapper provider.
docstr: Convert given sample from float to unit.
docstr_tok: ["Convert","given","sample","from","float","to","unit","."]
code: def convert_to_uint(self, sample: Dict) -> Dict:
      """Convert given sample from float to unit."""
      return dict(
          sample,
          **spectrogram_to_db_uint(
              sample[self._spectrogram_key],
              tensor_key=self._spectrogram_key,
              min_key=self._min_spectrogram_key,
              max_key=self._max_spectrogram_key,
          ),
      )
  
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 5 for calling the InstrumentDatasetBuilder obj's underlying member method code with example usage: obj.convert_to_uint(sample) and returns: dict