code: def test_aggregate_weighted_normalized_sum():
      from lasagne.objectives import aggregate
  
      x = theano.tensor.matrix("x")
      w = theano.tensor.matrix("w")
      assert theano.gof.graph.is_same_graph(
          aggregate(x, w, "normalized_sum"), (x * w).sum() / w.sum()
      )
  
imports: import numpy
  import theano
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_aggregate_weighted_normalized_sum() without return types