class_docstr: DataFrame accessor for sparse data.
class_docstr_tok: ["DataFrame","accessor","for","sparse","data","."]
code: def _validate(self, data):
      dtypes = data.dtypes
      if not all(isinstance(t, SparseDtype) for t in dtypes):
          raise AttributeError(self._validation_msg)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import numpy
  from pandas.compat._optional import import_optional_dependency
  from pandas.core.dtypes.cast import find_common_type
  from pandas.core.accessor import PandasDelegate, delegate_names
  from pandas.core.arrays.sparse.array import SparseArray
  from pandas.core.arrays.sparse.dtype import SparseDtype
label_desc: Use image node_id 1 for calling the SparseFrameAccessor obj's underlying member method code with example usage: obj._validate(data) without return types