code: def get_batch_starts_ends(manifest_filepath, batch_size):
      """
      Get the start and end ids of the lines we will use for each 'batch'.
      """
  
      with open(manifest_filepath, "r") as f:
          num_lines_in_manifest = sum(1 for _ in f)
  
      starts = [x for x in range(0, num_lines_in_manifest, batch_size)]
      ends = [x - 1 for x in starts]
      ends.pop(0)
      ends.append(num_lines_in_manifest)
  
      return starts, ends
  
imports: import json
  from dataclasses import dataclass, field
  from pathlib import Path
  from typing import List, Union
  import soundfile
  import torch
  from tqdm.auto import tqdm
  from utils.constants import BLANK_TOKEN, SPACE_TOKEN, V_NEGATIVE_NUM
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling a global function with example usage: get_batch_starts_ends(manifest_filepath, batch_size) and returns: starts,  ends