def METHOD_NAME(model, dataset):
    # Form one-sample dataset, as the 'explain' function process such input.
    one_sample_dataset = Dataset(
        dataset.df.head(1), target=dataset.target, column_types=dataset.column_types, validation=False
    )
    # Define 'explain_full' input.
    dataset_shap_input = {"model": model, "dataset": one_sample_dataset}
    # Define 'explain_one' input.
    sample_shap_input = dataset_shap_input.copy()
    sample_shap_input["input_data"] = one_sample_dataset.df.iloc[0].to_dict()
    # Check if outputs are equal.
    assert (
        np.isclose(
            _calculate_sample_shap_values(**sample_shap_input), _calculate_dataset_shap_values(**dataset_shap_input)
        )
    ).all()