code: def test_dim_constructor_fail(sym):
      with pytest.raises(NotImplementedError):
          parse("fixed[10] * var * string", sym)
      with pytest.raises(DataShapeSyntaxError):
          parse("fixed[10 * var * string", 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 8 for calling a global function with example usage: test_dim_constructor_fail(sym) without return types