code: def calculate_fusion(model, im, seg1, seg2, attn, time):
      input_names = model.get_input_names()
      im_handle = model.get_input_handle(input_names[0])
      seg1_handle = model.get_input_handle(input_names[1])
      seg2_handle = model.get_input_handle(input_names[2])
      attn_handle = model.get_input_handle(input_names[3])
      time_handle = model.get_input_handle(input_names[4])
      im_handle.copy_from_cpu(im)
      seg1_handle.copy_from_cpu(seg1)
      seg2_handle.copy_from_cpu(seg2)
      attn_handle.copy_from_cpu(attn)
      time_handle.copy_from_cpu(time)
      model.run()
      output_names = model.get_output_names()
      output_handle = model.get_output_handle(output_names[0])
      result = output_handle.copy_to_cpu()
      return result
  
file_path: PaddleSeg/EISeg/eiseg/plugin/video/load_model.py
imports: import paddle
  import paddle.inference
label_desc: Use image node_id 6 for calling a global function with example usage: calculate_fusion(model, im, seg1, seg2, attn, time) and returns: result