code: def _raw_face_locations_batched(
      images, number_of_times_to_upsample=1, batch_size=128
  ):
      """
      Returns an 2d array of dlib rects of human faces in a image using the cnn face detector
  
      :param images: A list of images (each as a numpy array)
      :param number_of_times_to_upsample: How many times to upsample the image looking for faces. Higher numbers find smaller faces.
      :return: A list of dlib 'rect' objects of found face locations
      """
      return cnn_face_detector(
          images, number_of_times_to_upsample, batch_size=batch_size
      )
  
file_path: face_recognition/face_recognition/api.py
imports: import PIL.Image
  import dlib
  import numpy
  from PIL import ImageFile
label_desc: Use image node_id 8 for calling a global function with example usage: _raw_face_locations_batched(images, number_of_times_to_upsample, batch_size) and returns: cnn_face_detector