code: def cat_avg_max_reduce_channel(x):
      # Reduce hw by cat+avg+max
      assert isinstance(x, (list, tuple)) and len(x) > 1
  
      x = paddle.concat(x, axis=1)
  
      mean_value = paddle.mean(x, axis=1, keepdim=True)
      max_value = paddle.max(x, axis=1, keepdim=True)
      res = paddle.concat([mean_value, max_value], axis=1)
  
      return res
  
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 8 for calling a global function with example usage: cat_avg_max_reduce_channel(x) and returns: res