code: def quantize(
      *, x: np.ndarray, quantize_bits: int, **kwargs
  ) -> np.ndarray:
      """Quantize a waveform to a given number of bits.
  
      Args:
          x (np.ndarray): Waveform to quantize. Must be normalized into the range `[-1, 1]`.
          quantize_bits (int): Number of quantization bits.
  
      Returns:
          np.ndarray: Quantized waveform.
      """
      return (x + 1.0) * (2**quantize_bits - 1) / 2
  
imports: from io import BytesIO
  from typing import Tuple
  import librosa
  import numpy
  import scipy
  import soundfile
  from librosa import magphase, pyin
label_desc: Use image node_id 31 for calling a global function with example usage: quantize() and returns: unknown