code: def test_to_numpy_dataset_with_dask_backend_mismatch():
      dd_df = dd.from_pandas(
          pd.DataFrame([[1, 2, 3]], columns=["col1", "col2", "col3"]),
          npartitions=1,
      )
  
      with pytest.raises(AttributeError):
          to_numpy_dataset(dd_df, backend=LOCAL_BACKEND)
  
file_path: ludwig/tests/ludwig/utils/test_dataframe_utils.py
imports: import numpy
  import pandas
  import pytest
  from ludwig.backend import create_backend, LOCAL_BACKEND
  from ludwig.utils.dataframe_utils import to_numpy_dataset, to_scalar_df
label_desc: Use image node_id 2 for calling a global function with example usage: test_to_numpy_dataset_with_dask_backend_mismatch() without return types