code: def calculate_memorize(model, frame, masks):
      input_names = model.get_input_names()
      frame_handle = model.get_input_handle(input_names[0])
      masks_handle = model.get_input_handle(input_names[1])
      frame_handle.copy_from_cpu(frame)
      masks_handle.copy_from_cpu(masks)
      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 3 for calling a global function with example usage: calculate_memorize(model, frame, masks) and returns: result,  result2