code: def main(image_to_check, cpus, model, upsample):
      # 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, model, upsample)
                  for image_file in image_files_in_folder(
                      image_to_check
                  )
              ]
          else:
              process_images_in_process_pool(
                  image_files_in_folder(image_to_check),
                  cpus,
                  model,
                  upsample,
              )
      else:
          test_image(image_to_check, model, upsample)
  
file_path: face_recognition/face_recognition/face_detection_cli.py
imports: from __future__ import print_function
  import click
  import os
  import re
  import face_recognition.api
  import multiprocessing
  import sys
  import itertools
label_desc: Use image node_id 5 for calling a global function with example usage: main(image_to_check, cpus, model, upsample) without return types