code: def test_undefined_shape(self, ScaleLayer):
      # should work:
      ScaleLayer((64, None, 3), shared_axes=(1, 2))
      # should not work:
      with pytest.raises(ValueError) as exc:
          ScaleLayer((64, None, 3), shared_axes=(0, 2))
      assert "needs specified input sizes" in exc.value.args[0]
  
imports: from mock import Mock
  import numpy
  import pytest
  import theano
  from lasagne.layers import InputLayer, standardize, get_output, get_all_params
  from lasagne.utils import floatX
label_desc: Use image node_id 5 for calling the TestScaleLayer obj's underlying member method code with example usage: obj.test_undefined_shape(ScaleLayer) without return types