code: def test_adaptive_avgpool1d():
      x = jnp.arange(14.0).reshape(1, 14)
      adaptive_pool = eqx.nn.AdaptiveAvgPool1d(4)
      output = adaptive_pool(x)
      answer = jnp.array([[1.5, 5.5, 9.0, 12.0]])
      assert jnp.all(output == answer)
  
      adaptive_pool = eqx.nn.AdaptiveAvgPool1d(14)
      output = adaptive_pool(x)
      assert jnp.all(output == x)
  
imports: import warnings
  from typing import Union
  import equinox
  import jax
  import jax.nn
  import jax.numpy
  import jax.random
  import pytest
label_desc: Use image node_id 34 for calling a global function with example usage: test_adaptive_avgpool1d() without return types