code: def get_f0_upsample_ratio(code_hop_size, f_hop_size):
      ratio = (code_hop_size // 160) // (f_hop_size // 256) * 2
      return ratio
  
file_path: fairseq/examples/textless_nlp/pgslm/generate_waveform.py
imports: import ast
  import argparse
  import json
  import logging
  from pathlib import Path
  import soundfile
  import torch
  from tqdm import tqdm
  from fairseq import utils
  from fairseq.models.text_to_speech.vocoder import CodeHiFiGANVocoder
label_desc: Use image node_id 3 for calling a global function with example usage: get_f0_upsample_ratio(code_hop_size, f_hop_size) and returns: ratio