code: def get_manifest_lines_batch(manifest_filepath, start, end):
      manifest_lines_batch = []
      with open(manifest_filepath, "r", encoding="utf-8-sig") as f:
          for line_i, line in enumerate(f):
              if line_i >= start and line_i <= end:
                  data = json.loads(line)
                  if "text" in data:
                      # remove any BOM, any duplicated spaces, convert any
                      # newline chars to spaces
                      data["text"] = data["text"].replace("\ufeff", "")
                      data["text"] = " ".join(data["text"].split())
  
                      # Replace any horizontal ellipses with 3 separate periods.
                      # The tokenizer will do this anyway. But making this replacement
                      # now helps avoid errors when restoring punctuation when saving
                      # the output files
                      data["text"] = data["text"].replace(
                          "\u2026", "..."
                      )
                  manifest_lines_batch.append(data)
  
              if line_i == end:
                  break
      return manifest_lines_batch
  
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 5 for calling a global function with example usage: get_manifest_lines_batch(manifest_filepath, start, end) and returns: manifest_lines_batch