code: def padding_ratio(lengths):
      """Determines how much of batch is padding."""
      return 1.0 - sum(lengths) / total_length_with_padding(lengths)
  
file_path: speechbrain/speechbrain/dataio/iterators.py
imports: import bisect
  import random
  from dataclasses import dataclass, field
  from functools import partial
  from typing import Any
  from speechbrain.dataio.batch import PaddedBatch
label_desc: Use image node_id 2 for calling a global function with example usage: padding_ratio(lengths) and returns: unknown