code: def _log(x, base):
      if base == 10:
          return np.log10(x)
      return np.log(x)
  
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 3 for calling a global function with example usage: _log(x, base) and returns: np, np