code: def test_type_constructor_fail(sym):
      with pytest.raises(DataShapeSyntaxError):
          parse("string[10,[", sym)
  
      with pytest.raises(DataShapeSyntaxError):
          parse("string[10,", sym)
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  import pytest
  from datashader import datashape
  from datashader.datashape.util.testing import assert_dshape_equal
  from datashader.datashape.parser import parse
  from datashader.datashape import coretypes
  from datashader.datashape import DataShapeSyntaxError
label_desc: Use image node_id 7 for calling a global function with example usage: test_type_constructor_fail(sym) without return types