code: def test_multiindex_raise_error():
      index = pd.MultiIndex.from_product(
          [[1, 2, 3], ["a", "b"]], names=["first", "second"]
      )
      df = pd.DataFrame(
          np.random.random((6, 3)), index=index, columns=["A", "B", "C"]
      )
      # This is ok
      px.scatter(df, x="A", y="B")
      with pytest.raises(TypeError) as err_msg:
          px.scatter(df, x=df.index, y="B")
      assert (
          "pandas MultiIndex is not supported by plotly express"
          in str(err_msg.value)
      )
  
imports: import plotly.express
  import plotly.graph_objects
  import numpy
  import pandas
  import pytest
  from packaging import version
  import unittest.mock
  from plotly.express._core import build_dataframe
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 15 for calling a global function with example usage: test_multiindex_raise_error() without return types