code: def test_average_pooling_1d(self):
      (x, ksize) = self._get_data(1)
      testing.assert_allclose(
          functions.average_pooling_nd(x, ksize).array,
          functions.average_pooling_1d(x, ksize).array,
      )
  
imports: import functools
  import operator
  import unittest
  import numpy
  import pytest
  import six
  import chainer
  from chainer.backends import cuda
  from chainer import functions
  from chainer import testing
  from chainer.testing import attr
  from chainer.utils import conv
  from chainer_tests.functions_tests.pooling_tests import pooling_nd_helper
label_desc: Use image node_id 2 for calling the TestAveragePoolingNDWrappers obj's underlying member method code with example usage: obj.test_average_pooling_1d() without return types