code: def test_compute_norms_axes():
      from lasagne.utils import compute_norms
  
      # Test numpy versions of compute norms with axes
      array = np.random.randn(10, 20, 30, 40).astype(
          theano.config.floatX
      )
  
      norms = compute_norms(array, norm_axes=(0, 2))
  
      assert array.dtype == norms.dtype
      assert norms.shape == (array.shape[1], array.shape[3])
  
      # Test theano version of compute_norms
      t_array = theano.shared(array)
      t_norms = compute_norms(t_array, norm_axes=(0, 2))
  
      # Check if they do not differ much
      assert np.allclose(t_norms.eval(), norms)
  
imports: from mock import Mock
  import pytest
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 9 for calling a global function with example usage: test_compute_norms_axes() without return types