code: def _dimensions(ds):
      """Number of dimensions of datashape"""
      return len(dshape(ds).shape)
  
file_path: datashader/datashader/datashape/predicates.py
imports: import numpy
  from .util import collect, dshape
  from .internal_utils import remove
  from .coretypes import DataShape, Fixed, Var, Ellipsis, Record, Unit, date_, datetime_, TypeVar, to_numpy_dtype, Categorical
  from .typesets import floating, boolean
label_desc: Use image node_id 5 for calling a global function with example usage: _dimensions(ds) and returns: len