code: def filter_by_length_and_ratio(args):
      (
          src_edges,
          tgt_edges,
          input_src,
          input_tgt,
          filtered_dir_src,
          filtered_dir_tgt,
          removed_dir_src,
          removed_dir_tgt,
          min_length,
          max_length,
          length_ratio,
          rank,
      ) = args
      logging.debug(
          f"filter by args: {min_length}, {max_length}, {length_ratio}"
      )
      filter_pairs(
          src_edges,
          tgt_edges,
          input_src,
          input_tgt,
          filtered_dir_src,
          filtered_dir_tgt,
          removed_dir_src,
          removed_dir_tgt,
          min_length,
          max_length,
          length_ratio,
          rank,
      )
  
file_path: NeMo/scripts/neural_machine_translation/length_ratio_filter.py
imports: import argparse
  import logging
  import multiprocessing
  import re
  import shutil
  import warnings
  from pathlib import Path
  from time import sleep
  from tqdm import tqdm
label_desc: Use image node_id 5 for calling a global function with example usage: filter_by_length_and_ratio(args) without return types