code: def get_images_path(file_path):
      """
      Get the path of origin images and annotated images.
      """
      assert os.path.isfile(file_path)
  
      images_path = []
      image_dir = os.path.dirname(file_path)
  
      with open(file_path, "r") as f:
          for line in f:
              line = line.strip()
              origin_path, annot_path = line.split(" ")
              origin_path = os.path.join(image_dir, origin_path)
              annot_path = os.path.join(image_dir, annot_path)
              images_path.append([origin_path, annot_path])
  
      return images_path
  
file_path: PaddleSeg/tools/data/visualize_annotation.py
imports: import argparse
  import os
  import shutil
  import cv2
  import numpy
  from PIL import Image
  from paddleseg import utils
  from paddleseg.utils import progbar, visualize
label_desc: Use image node_id 2 for calling a global function with example usage: get_images_path(file_path) and returns: images_path