code: def test_as_tuple_fails():
      from lasagne.utils import as_tuple, int_types
  
      with pytest.raises(ValueError) as exc:
          as_tuple([1, 2, 3], 4)
      assert "length 4" in exc.value.args[0]
      with pytest.raises(TypeError) as exc:
          as_tuple("asdf", 4, int)
      assert "of int," in exc.value.args[0]
      with pytest.raises(TypeError) as exc:
          as_tuple("asdf", 4, (int, float))
      assert "of int or float," in exc.value.args[0]
      with pytest.raises(TypeError) as exc:
          as_tuple("asdf", 4, int_types)
      assert "of int," in exc.value.args[0]
  
imports: from mock import Mock
  import pytest
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 6 for calling a global function with example usage: test_as_tuple_fails() without return types