code: def test_aggregate_mean():
      from lasagne.objectives import aggregate
  
      x = theano.tensor.matrix("x")
      assert theano.gof.graph.is_same_graph(aggregate(x), x.mean())
      assert theano.gof.graph.is_same_graph(
          aggregate(x, mode="mean"), x.mean()
      )
  
imports: import numpy
  import theano
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_aggregate_mean() without return types