code: def _check_image_file(path):
      img_end = {
          "jpg",
          "bmp",
          "png",
          "jpeg",
          "rgb",
          "tif",
          "tiff",
          "gif",
      }
      return any([path.lower().endswith(e) for e in img_end])
  
file_path: PaddleOCR/deploy/pdserving/pipeline_http_client.py
imports: import numpy
  import requests
  import json
  import base64
  import os
  import argparse
label_desc: Use image node_id 3 for calling a global function with example usage: _check_image_file(path) and returns: any