code: def _core_avgpooling2d(self, **layer_kwargs):
      channel_in = 2
      batch_input_shape = [2, 8, 8, channel_in]  # channels last
      pool_size_in = 2
  
      base_kwargs = {
          "pool_size": pool_size_in,
      }
  
      kwargs = {**base_kwargs, **layer_kwargs}
      agreement_test(
          tfe.keras.layers.AveragePooling2D,
          kwargs=kwargs,
          batch_input_shape=batch_input_shape,
      )
      layer_test(
          tfe.keras.layers.AveragePooling2D,
          kwargs=kwargs,
          batch_input_shape=batch_input_shape,
      )
  
imports: import unittest
  import numpy
  import pytest
  import tf_encrypted
  from tf_encrypted.keras.testing_utils import agreement_test
  from tf_encrypted.keras.testing_utils import layer_test
label_desc: Use image node_id 8 for calling the TestPooling2d obj's underlying member method code with example usage: obj._core_avgpooling2d() without return types