code: def test_columnar_convert_rowframe_ndarray_invalid():
      converter = ColumnarConverter(
          "some_name",
          "foo",
          None,
          column_defaults={},
          selected_columns={"bar": "baz"},
          transform_columns={},
      )
  
      frame = IndexedArray(np.random.rand(3, 4, 5))
  
      with pytest.raises(
          ValueError,
          match=r"some_name\['foo'\]: expected a Pandas DataFrame when selecting columns 'bar', found IndexedArray",
      ):
          converter.convert(frame)
  
      with pytest.raises(
          ValueError,
          match=r"some_name\['foo'\]: expected a Pandas DataFrame when selecting columns 'bar', found ndarray",
      ):
          converter.convert(frame.values)
  
imports: import networkx
  import numpy
  import pandas
  import pytest
  from stellargraph.core.convert import ColumnarConverter, convert_nodes, convert_edges, from_networkx
  from stellargraph.core.indexed_array import IndexedArray
label_desc: Use image node_id 14 for calling a global function with example usage: test_columnar_convert_rowframe_ndarray_invalid() without return types