code: def is_image(input):
      try:
          img = Image.open(input)
          _ = img.size
          return True
      except:
          return False
  
file_path: PaddleHub/modules/image/Image_editing/super_resolution/realsr/utils.py
imports: import os
  import sys
  import base64
  import cv2
  from PIL import Image
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: is_image(input) and returns: True, False