code: def validate(cls, dataset, vdims=True):
      ndims = len(dataset.dimensions()) if vdims else dataset.ndims
      ncols = dataset.data.shape[1] if dataset.data.ndim > 1 else 1
      if ncols < ndims:
          raise DataError(
              "Supplied data does not match specified "
              "dimensions, expected at least %s columns." % ndims,
              cls,
          )
  
imports: import numpy
  from ..None import util
  from ..dimension import dimension_name
  from ..element import Element
  from ..ndmapping import NdMapping, item_check, sorted_context
  from .interface import DataError, Interface
label_desc: Use image node_id 3 for calling the ArrayInterface obj's underlying member method code with example usage: obj.validate(cls, dataset, vdims) without return types