code: def avg_reduce_channel(x):
      # Reduce channel by avg
      # Return cat([avg_ch_0, avg_ch_1, ...])
      if not isinstance(x, (list, tuple)):
          return paddle.mean(x, axis=1, keepdim=True)
      elif len(x) == 1:
          return paddle.mean(x[0], axis=1, keepdim=True)
      else:
          res = []
          for xi in x:
              res.append(paddle.mean(xi, axis=1, keepdim=True))
          return paddle.concat(res, axis=1)
  
file_path: PaddleSeg/paddleseg/models/layers/tensor_fusion_helper.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 4 for calling a global function with example usage: avg_reduce_channel(x) and returns: paddle, paddle, paddle