code: def all_gather(data):
      if paddle.distributed.get_world_size() == 1:
          return data
      vlist = []
      paddle.distributed.all_gather(vlist, data)
      data = paddle.concat(vlist, 0)
      return data
  
imports: import paddle
  from paddle.distributed import ParallelEnv
  import os
  import json
  from collections import defaultdict, OrderedDict
  import numpy
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 5 for calling a global function with example usage: all_gather(data) and returns: data, data