code: def test_strides2x2():
      valid_input = np.array([1, 2, 3, 4, 5, 6, 7, 8]).astype(
          np.float32
      )
      valid_input = np.reshape(valid_input, (1, 2, 4, 1))
      indices = np.array([0, 5, 10, 13, 19, 20, 27, 31]).astype(
          np.float32
      )
      indices = np.reshape(indices, (1, 2, 4, 1))
      expected_output_shape = (1, 4, 8, 1)
      expected_output = np.array(
          # fmt: off
          [
              1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 3, 0, 0, 4, 0, 0, 0, 0, 0, 5, 6, 0, 0, 0, 0,
              0, 0, 7, 0, 0, 0, 8
          ]
          # fmt: on
      ).astype(np.float32)
      expected_output = np.reshape(
          expected_output, expected_output_shape
      )
  
      output = MaxUnpooling2D()(valid_input, indices).numpy()
      np.testing.assert_array_equal(expected_output, output)
  
file_path: addons/tensorflow_addons/layers/tests/max_unpooling_2d_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.layers.max_unpooling_2d import MaxUnpooling2D
label_desc: Use image node_id 3 for calling a global function with example usage: test_strides2x2() without return types