code: def get_image():
      image = request.files.get("image")
      if not image:
          raise ValueError
  
      image = Image.open(image.stream).convert("RGB")
      return image
  
file_path: luminoth/luminoth/tools/server/web.py
imports: import click
  import tensorflow
  from flask import Flask, jsonify, request, render_template
  from threading import Thread
  from PIL import Image
  from six.moves import _thread
  from luminoth.tools.checkpoint import get_checkpoint_config
  from luminoth.utils.config import get_config, override_config_params
  from luminoth.utils.predicting import PredictorNetwork
label_desc: Use image node_id 1 for calling a global function with example usage: get_image() and returns: image