code: def _assert_dataset_equivalent(ds1: _t_dat, ds2: _t_dat):
      if isinstance(ds1, pd_DataFrame):
          assert isinstance(ds2, pd_DataFrame)
          assert ds1.equals(ds2)
      else:
          assert isinstance(ds2, np.ndarray)
          np.testing.assert_array_equal(ds1, ds2)
  
imports: from .compat import pd_DataFrame, pd_Series, pd_read_parquet
  import numpy
  from numpy.random import RandomState
  import blosc
  import dill
  from typing import Union, List, Dict, Optional
label_desc: Use image node_id 10 for calling a global function with example usage: _assert_dataset_equivalent(ds1, ds2) without return types