code: def get_image_ext(image):
      if image.shape[2] == 4:
          return ".png"
      return ".jpg"
  
file_path: PaddleHub/modules/image/text_recognition/multi_languages_ocr_db_crnn/utils.py
imports: import os
  import time
  import cv2
  import numpy
  from PIL import Image, ImageDraw
  from paddleocr import draw_ocr
label_desc: Use image node_id 4 for calling a global function with example usage: get_image_ext(image) and returns: str, str