code: def _read_born_digital_labels_file(labels_filepath, image_folder):
      """Read a labels file and return (filepath, label) tuples.
  
      Args:
          labels_filepath: Path to labels file
          image_folder: Path to folder containing images
      """
      with open(labels_filepath, encoding="utf-8-sig") as f:
          labels_raw = [l.strip().split(",") for l in f.readlines()]
          labels = [
              (
                  os.path.join(image_folder, segments[0]),
                  None,
                  ",".join(segments[1:]).strip()[1:-1],
              )
              for segments in labels_raw
          ]
      return labels
  
imports: import concurrent.futures
  import itertools
  import warnings
  import typing
  import zipfile
  import random
  import glob
  import json
  import os
  import tqdm
  import imgaug
  import PIL.Image
  import numpy
  from .None import tools
label_desc: Use image node_id 1 for calling a global function with example usage: _read_born_digital_labels_file(labels_filepath, image_folder) and returns: labels