code: def test_2d_avg_shape(self):
      input_param = {"func": "AVG", "kernel_size": [2, 3], "stride": 2}
      self._test_nd_downsample_output_shape(
          rank=2, param_dict=input_param, output_shape=(2, 8, 8, 8)
      )
  
file_path: NiftyNet/tests/downsample_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.layer.downsample import DownSampleLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 8 for calling the DownSampleTest obj's underlying member method code with example usage: obj.test_2d_avg_shape() without return types