code: def get_save_image_name(img, org_im_path, output_dir):
      """
      Get save image name.
      """
      # name prefix of original image
      org_im_name = os.path.split(org_im_path)[-1]
      im_prefix = os.path.splitext(org_im_name)[0]
      # extension
      if img.mode == "RGBA":
          ext = ".png"
      else:
          ext = ".jpg"
      # save image path
      save_im_path = os.path.join(output_dir, im_prefix + ext)
      if os.path.exists(save_im_path):
          save_im_path = os.path.join(
              output_dir,
              im_prefix + "time={}".format(int(time.time())) + ext,
          )
      return save_im_path
  
file_path: PaddleHub/modules/image/face_detection/pyramidbox_face_detection/processor.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import time
  import base64
  import cv2
  import numpy
  from PIL import ImageDraw
label_desc: Use image node_id 3 for calling a global function with example usage: get_save_image_name(img, org_im_path, output_dir) and returns: save_im_path