code: def test_scalar_subarray():
      assert datashape.int32.subarray(0) == datashape.int32
      with pytest.raises(IndexError):
          datashape.int32.subarray(1)
      assert datashape.string.subarray(0) == datashape.string
      with pytest.raises(IndexError):
          datashape.string.subarray(1)
  
imports: from datashader import datashape
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_scalar_subarray() without return types