code: def get_save_image_name(org_im, org_im_path, output_dir):
      """
      Get save image name from source image path.
      """
      # name prefix of orginal image
      org_im_name = os.path.split(org_im_path)[-1]
      im_prefix = os.path.splitext(org_im_name)[0]
      ext = ".png"
      # 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/semantic_segmentation/deeplabv3p_xception65_humanseg/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
label_desc: Use image node_id 5 for calling a global function with example usage: get_save_image_name(org_im, org_im_path, output_dir) and returns: save_im_path