code: def get_line_byte_start(corpus_path: str) -> np.ndarray:
      """Get the start position of each lines in terms of bytes so that we can use seek + read to
       load an arbitrary line.
  
      Parameters
      ----------
      corpus_path
          The path of the corpus
  
      Returns
      -------
      line_pos
          Shape (#Lens + 1,)
      """
      line_pos = [0]
      with open(corpus_path, "rb") as in_f:
          pos = 0
          for line in in_f:
              pos += len(line)
              line_pos.append(pos)
      return np.array(line_pos, dtype=np.int64)
  
imports: import argparse
  import os
  import multiprocessing
  import time
  import numpy
  import warnings
  import re
  from gluonnlp.data.filtering import MosesNormalizer
  from gluonnlp.data.tokenizers import MosesTokenizer, BaseTokenizer, WhitespaceTokenizer, JiebaTokenizer
  from typing import List, Union, Optional
label_desc: Use image node_id 4 for calling a global function with example usage: get_line_byte_start(corpus_path) and returns: np