code: def multi_apply(func, *args, **kwargs):
      pfunc = partial(func, **kwargs) if kwargs else func
      map_results = map(pfunc, *args)
      return tuple(map(list, zip(*map_results)))
  
file_path: PaddleOCR/ppocr/losses/det_fce_loss.py
imports: import numpy
  from paddle import nn
  import paddle
  import paddle.nn.functional
  from functools import partial
label_desc: Use image node_id 1 for calling a global function with example usage: multi_apply(func) and returns: tuple