code: def validate(cls, dataset, vdims=True):
      dim_types = "all" if vdims else "key"
      dimensions = dataset.dimensions(dim_types, label="name")
      cols = list(dataset.data.columns)
      not_found = [d for d in dimensions if d not in cols]
      if not_found:
          raise DataError(
              "Supplied data does not contain specified "
              "dimensions, the following dimensions were "
              "not found: %s" % repr(not_found),
              cls,
          )
  
imports: import numpy
  import pandas
  from packaging.version import Version
  from pandas.api.types import is_numeric_dtype
  from ..None import util
  from ..dimension import Dimension, dimension_name
  from ..element import Element
  from ..ndmapping import NdMapping, item_check, sorted_context
  from .interface import DataError, Interface
  from .util import finite_range
label_desc: Use image node_id 4 for calling the PandasInterface obj's underlying member method code with example usage: obj.validate(cls, dataset, vdims) without return types