code: def get_hop_size(hparams):
      hop_size = hparams["hop_size"]
      if hop_size is None:
          assert hparams["frame_shift_ms"] is not None
          hop_size = int(
              hparams["frame_shift_ms"]
              / 1000
              * hparams["audio_sample_rate"]
          )
      return hop_size
  
file_path: PaddleHub/modules/audio/svs/diffsinger/utils/audio.py
imports: import subprocess
  import matplotlib
  import librosa
  import librosa.filters
  import numpy
  from scipy import signal
  from scipy.io import wavfile
label_desc: Use image node_id 2 for calling a global function with example usage: get_hop_size(hparams) and returns: hop_size