code: def test_get_output_shape_for(self, layer_vars):
      layer = layer_vars["layer"]
      num_units = layer_vars["num_units"]
      num_leading_axes = layer_vars["num_leading_axes"]
      for input_shape in ((5, 6, 7), (None, 2, 3), (None, None, None)):
          output_shape = input_shape[:num_leading_axes] + (num_units,)
          assert layer.get_output_shape_for(input_shape) == output_shape
  
imports: from mock import Mock
  import numpy
  import pytest
  import theano
  import lasagne
label_desc: Use image node_id 9 for calling the TestDenseLayer obj's underlying member method code with example usage: obj.test_get_output_shape_for(layer_vars) without return types