code: def _check_number_of_nodes(N_pool_expected, N_pool_true):
      assert N_pool_expected == N_pool_true or N_pool_true is 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 2 for calling a global function with example usage: _check_number_of_nodes(N_pool_expected, N_pool_true) without return types