code: def scan_known_people(known_people_folder):
      known_names = []
      known_face_encodings = []
  
      for file in image_files_in_folder(known_people_folder):
          basename = os.path.splitext(os.path.basename(file))[0]
          img = face_recognition.load_image_file(file)
          encodings = face_recognition.face_encodings(img)
  
          if len(encodings) > 1:
              click.echo(
                  "WARNING: More than one face found in {}. Only considering the first face.".format(
                      file
                  )
              )
  
          if len(encodings) == 0:
              click.echo(
                  "WARNING: No faces found in {}. Ignoring file.".format(
                      file
                  )
              )
          else:
              known_names.append(basename)
              known_face_encodings.append(encodings[0])
  
      return known_names, known_face_encodings
  
file_path: face_recognition/face_recognition/face_recognition_cli.py
imports: from __future__ import print_function
  import click
  import os
  import re
  import face_recognition.api
  import multiprocessing
  import itertools
  import sys
  import PIL.Image
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: scan_known_people(known_people_folder) and returns: known_names,  known_face_encodings