code: def calculate_segmentation(model, frame, keys, values):
      input_names = model.get_input_names()
      frame_handle = model.get_input_handle(input_names[0])
      keys_handle = model.get_input_handle(input_names[1])
      values_handle = model.get_input_handle(input_names[2])
      frame_handle.copy_from_cpu(frame)
      keys_handle.copy_from_cpu(keys)
      values_handle.copy_from_cpu(values)
      model.run()
      output_names = model.get_output_names()
      output_handle = model.get_output_handle(output_names[0])
      result = output_handle.copy_to_cpu()
      output_handle2 = model.get_output_handle(output_names[1])
      result2 = output_handle2.copy_to_cpu()
      return result, result2
  
file_path: PaddleSeg/EISeg/eiseg/plugin/video/load_model.py
imports: import paddle
  import paddle.inference
label_desc: Use image node_id 4 for calling a global function with example usage: calculate_segmentation(model, frame, keys, values) and returns: result,  result2