def METHOD_NAME(pd_es, dask_es):
    df = pd.DataFrame({"id": [0, 1, 2, 3], "values": [1, 12, -34, 27]})
    dask_df = dd.from_pandas(df, npartitions=2)
    err_msg = (
        "All dataframes must be of the same type. "
        "Cannot add dataframe of type {} to an entityset with existing dataframes "
        "of type {}"
    )
    # Test error is raised when trying to add Dask dataframe to entityset with existing pandas dataframes
    with pytest.raises(
        ValueError,
        match=err_msg.format(type(dask_df), type(pd_es.dataframes[0])),
    ):
        pd_es.add_dataframe(
            dataframe_name="new_dataframe",
            dataframe=dask_df,
            index="id",
        )
    # Test error is raised when trying to add pandas dataframe to entityset with existing dask dataframes
    with pytest.raises(
        ValueError,
        match=err_msg.format(type(df), type(dask_es.dataframes[0])),
    ):
        dask_es.add_dataframe(dataframe_name="new_dataframe", dataframe=df, index="id")