code: def __list_images(path: str) -> list:
      """
      List images in a given path
      Args:
          path (str): path's location
      Returns:
          images (list): list of exact image paths
      """
      images = []
      for r, _, f in os.walk(path):
          for file in f:
              if file.lower().endswith((".jpg", ".jpeg", ".png")):
                  exact_path = f"{r}/{file}"
                  images.append(exact_path)
      return images
  
file_path: deepface/deepface/modules/recognition.py
imports: import os
  import pickle
  from typing import List, Union
  import time
  import numpy
  import pandas
  from tqdm import tqdm
  from deepface.commons import functions, distance
  from deepface.commons.logger import Logger
  from deepface.modules import representation
label_desc: Use image node_id 2 for calling a global function with example usage: __list_images(path) and returns: images