code: def AveragePooling(shorten_factor, *args, **kwargs):
      del args, kwargs
  
      return AvgPool(
          pool_size=(shorten_factor,), strides=(shorten_factor,)
      )
  
file_path: trax/trax/layers/research/resampling.py
imports: from trax.fastmath import numpy
  from trax.layers import combinators
  from trax.layers import core
  from trax.layers.normalization import LayerNorm
  from trax.layers.pooling import AvgPool
  from trax.layers.research.rel_attention import RelativeAttentionLMLayer
label_desc: Use image node_id 1 for calling a global function with example usage: AveragePooling(shorten_factor) and returns: AvgPool