code: def deepfakes_detect_by_img(path):
      global g_query_fail
  
      url = "http://gwgp-h9xcyrmorux.n.bdcloudapi.com/rest/deepfakes/v1/detect"
  
      files = {"file": (path, open(path, "rb"), "image/jpeg", {})}
  
      res = requests.request("POST", url, data={"type": 1}, files=files)
  
      if args.debug:
          print(res)
          print(res.text)
          print(res.headers)
  
      face_num = 0
      face_list = []
  
      try:
          face_num = res.json()["face_num"]
  
          if face_num > 0:
              face_list = res.json()["face_list"]
              # draw_face(path,face_list,p=0.2)
  
      except:
          print("Fail to detect {}!".format(path))
          face_num = 0
          face_list = []
          g_query_fail += 1
  
      return face_num, face_list
  
file_path: AdvBox/applications/fake_face_detect/benchmarking.py
imports: import requests
  import cv2
  import os
  import shutil
  import glob
  import argparse
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: deepfakes_detect_by_img(path) and returns: face_num,  face_list