code: def isdimension(ds):
      """Is a component a dimension?
  
      >>> from datashader.datashape import int32
      >>> isdimension(Fixed(10))
      True
      >>> isdimension(Var())
      True
      >>> isdimension(int32)
      False
      """
      return isinstance(ds, dimension_types)
  
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 3 for calling a global function with example usage: isdimension(ds) and returns: isinstance