code: def _check_output_and_model_output_shapes(true_shape, model_shape):
      assert len(true_shape) == len(model_shape)
      for i in range(len(true_shape)):
          assert len(true_shape[i]) == len(model_shape[i])
          for j in range(len(true_shape[i])):
              assert model_shape[i][j] in {true_shape[i][j], None}
  
file_path: spektral/tests/test_layers/pooling/core.py
imports: import numpy
  import scipy.sparse
  import tensorflow
  from tensorflow.keras import Input, Model
  from spektral.utils.sparse import sp_matrix_to_sp_tensor
  from tests.test_layers.convolutional.core import _test_get_config
label_desc: Use image node_id 1 for calling a global function with example usage: _check_output_and_model_output_shapes(true_shape, model_shape) without return types