code: def total_length_with_padding(lengths):
      """Determines how long would batch be (with padding)"""
      return len(lengths) * max(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 1 for calling a global function with example usage: total_length_with_padding(lengths) and returns: unknown