code: def run_paddle(paddle_model, input_data):
      paddle_model.eval()
      paddle_outs = paddle_model(paddle.to_tensor(input_data))
      out = paddle_outs[0].numpy()
      if out.ndim == 3:
          out = out[np.newaxis, :]
      return out
  
file_path: PaddleSeg/contrib/QualityInspector/tools/seg/model/export_onnx.py
imports: import argparse
  import codecs
  import os
  import sys
  import time
  import numpy
  from tqdm import tqdm
  import paddle
  import onnx
  import onnxruntime
  from paddleseg.cvlibs import Config, SegBuilder
  from paddleseg.utils import logger, utils
label_desc: Use image node_id 2 for calling a global function with example usage: run_paddle(paddle_model, input_data) and returns: out