code: def test_check_dataset():
      df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
      _check_dataset(df)
  
      not_dataframe = {"A": [1, 2], "B": [3, 4]}
      with pytest.raises(
          AssertionError, match="only accept pandas DataFrame"
      ):
          _check_dataset(not_dataframe)
  
      df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
      features = ["A", "B", "C"]
      with pytest.raises(
          ValueError,
          match="df doesn't contain all model features, missing: {'C'}",
      ):
          _check_dataset(df, features)
  
      df = pd.DataFrame({"A": [1, 2], "B": [3, 4], "C": [5, 6]})
      features = ["A", "B", "C"]
      _check_dataset(df, features)
  
imports: import pandas
  import numpy
  import pytest
  from pdpbox.utils import FeatureInfo, _to_rgba, _check_col, _check_dataset, _make_list, _check_model, _check_classes, _check_memory_limit, _check_frac_to_plot, _calc_n_jobs, _get_string, _expand_params_for_interact, _calc_preds, _check_cluster_params, _check_plot_engine, _check_pdp_interact_plot_type
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_dataset() without return types