def test_missing_aggregation_raises_exception(
      self, use_received_edges, use_sent_edges,
      received_edges_reducer, sent_edges_reducer):
    """Checks that missing a required aggregation argument raises an error."""
    with self.assertRaisesRegexp(ValueError, "should not be None"):
      blocks.NodeBlock(
          node_model_fn=self._node_model_fn,
          use_received_edges=use_received_edges,
          use_sent_edges=use_sent_edges,
          use_nodes=False,
          use_globals=False,
          received_edges_reducer=received_edges_reducer,
          sent_edges_reducer=sent_edges_reducer)
Checks that missing a required aggregation argument raises an error.
graph_nets/tests/blocks_test.py