code: def test_cat_dshapes_errors():
      # need at least one dshape
      with pytest.raises(ValueError):
          datashape.cat_dshapes([])
  
      # dshapes need to match after the first dimension
      with pytest.raises(ValueError):
          datashape.cat_dshapes(
              [dshape("3 * 10 * int32"), dshape("3 * 1 * int32")]
          )
  
file_path: datashader/datashader/datashape/tests/test_util.py
imports: import pytest
  from datashader import datashape
  from datashader.datashape import dshape, has_var_dim, has_ellipsis
label_desc: Use image node_id 2 for calling a global function with example usage: test_cat_dshapes_errors() without return types