code: def test_multi_index():
      df = pd.DataFrame(
          [[1, 2, 3, 4], [3, 4, 5, 6], [1, 2, 3, 4], [3, 4, 5, 6]]
      )
      df.index = [["a", "a", "b", "b"], ["c", "d", "c", "d"]]
      with pytest.raises(TypeError) as err_msg:
          px.scatter(df)
      assert (
          "pandas MultiIndex is not supported by plotly express"
          in str(err_msg.value)
      )
  
      df = pd.DataFrame(
          [[1, 2, 3, 4], [3, 4, 5, 6], [1, 2, 3, 4], [3, 4, 5, 6]]
      )
      df.columns = [["e", "e", "f", "f"], ["g", "h", "g", "h"]]
      with pytest.raises(TypeError) as err_msg:
          px.scatter(df)
      assert (
          "pandas MultiIndex is not supported by plotly express"
          in str(err_msg.value)
      )
  
imports: import plotly.express
  import plotly.graph_objects
  import pandas
  import numpy
  from plotly.express._core import build_dataframe, _is_col_list
  from pandas.testing import assert_frame_equal
  import pytest
  import warnings
label_desc: Use image node_id 9 for calling a global function with example usage: test_multi_index() without return types