code: def get_image_ext(image):
      if image.shape[2] == 4:
          return ".png"
      return ".jpg"
  
file_path: PaddleHub/modules/image/keypoint_detection/face_landmark_localization/processor.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import base64
  import os
  import time
  import cv2
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: get_image_ext(image) and returns: str, str