@classmethod<EOL><INDENT>def isscalar(cls, dataset, dim):<DEDENT>
idx = dataset.get_dimension_index(dim)<EOL>return idx not in [<NUM_LIT:0>, <NUM_LIT:1>]<EOL>
Tests if dimension is scalar in each subpath.