code: def test_to_numpy_dataset_with_pandas_backend_mismatch(
      ray_cluster_2cpu,
  ):
      pd_df = pd.DataFrame(
          [[1, 2, 3]], columns=["col1", "col2", "col3"]
      )
      ray_backend = create_backend("ray")
  
      with pytest.raises(AttributeError):
          to_numpy_dataset(pd_df, backend=ray_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 6 for calling a global function with example usage: test_to_numpy_dataset_with_pandas_backend_mismatch(ray_cluster_2cpu) without return types