code: def main(
      known_people_folder,
      image_to_check,
      cpus,
      tolerance,
      show_distance,
  ):
      known_names, known_face_encodings = scan_known_people(
          known_people_folder
      )
  
      # Multi-core processing only supported on Python 3.4 or greater
      if (sys.version_info < (3, 4)) and cpus != 1:
          click.echo(
              "WARNING: Multi-processing support requires Python 3.4 or greater. Falling back to single-threaded processing!"
          )
          cpus = 1
  
      if os.path.isdir(image_to_check):
          if cpus == 1:
              [
                  test_image(
                      image_file,
                      known_names,
                      known_face_encodings,
                      tolerance,
                      show_distance,
                  )
                  for image_file in image_files_in_folder(
                      image_to_check
                  )
              ]
          else:
              process_images_in_process_pool(
                  image_files_in_folder(image_to_check),
                  known_names,
                  known_face_encodings,
                  cpus,
                  tolerance,
                  show_distance,
              )
      else:
          test_image(
              image_to_check,
              known_names,
              known_face_encodings,
              tolerance,
              show_distance,
          )
  
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 6 for calling a global function with example usage: main(known_people_folder, image_to_check, cpus, tolerance, show_distance) without return types